Page 1 of 1

[0.3]Cum sa faci sa apara stele la wanted - GodFather

Posted: Mon Oct 24, 2011 5:58 am
by RoberTo
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);
Cauta 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);
Asta a fost tot!Sper sa va mearga! Daca aveti ceva nelamuriri postati aici si va voi raspunde!