[0.3]Cum sa faci sa apara stele la wanted - GodFather
Posted: Mon Oct 24, 2011 5:58 am
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)
{
Sub asta PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);
pui asta
Urmati acest tutorial>
La inceput puneti "new stars;" intre celalalte
Cauta "OnPlayerEnterVehicle" si pui sub asta if(gTeam[playerid] >= 3)
{
Apoi cauti:new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
si pui asta deasupra la SetPlayerInterior(playerid, 6);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;
}
Cauta asta:SetPlayerWantedLevel(playerid, 0);
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
Apoi cauti linia astaSetPlayerWantedLevel(playerid, 0);
Si pui asta sub SendClientMessageformat(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). Reporter: %s.",reason,turner);
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:new wanted = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wanted + 1);
Cauta asta:SetPlayerWantedLevel(giveplayerid, 0);
Deasupra lui SetPlayerInterior(suspect, 6); pui asta:SetPlayerInterior(suspect, 6);
SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
PlayerInfo[suspect][pJailTime] = time * 60;
if(bail == 1)
{
Asta a fost tot!Sper sa va mearga! Daca aveti ceva nelamuriri postati aici si va voi raspunde!SetPlayerWantedLevel(giveplayerid, 0);