Am vazut ca multi playeri cauta cum sa faca sa apara stele la fiecare wanted primit.
Urmati acest tutorial...
La inceput puneti "new stars;" intre celalalte
Cauta "OnPlayerEnterVehicle" si pui sub asta:
if(gTeam[playerid] >= 3)
{
new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
Apoi cauti:
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
return 1;
}
si pui asta deasupra la SetPlayerInterior(playerid, 6);
SetPlayerWantedLevel(playerid, 0);
Cauta asta:
if(count == 1)
{
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pWantedDeaths] += 1;
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);
format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
}
}
}
Sub asta PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);
pui asta:
SetPlayerWantedLevel(playerid, 0);
Apoi cauti linia asta:
format(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). Reporter: %s.",reason,turner);
Si pui asta sub SendClientMessage
new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
Apoi daca vrei sa faci cand copul da clear sa dispara stelele, Cauti comanda /clear mergi putin mai jos si gasesti Officer %s has cleared .... Sub SendClientMessage pui asta:
SetPlayerWantedLevel(giveplayerid, 0);
Cauti asta:
SetPlayerInterior(suspect, 6);
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
PlayerInfo[suspect][pJailTime] = time * 60;
if(bail == 1)
{
Deasupra lui SetPlayerInterior(suspect, 6); pui asta:
SetPlayerWantedLevel(giveplayerid, 0);