27.09.2012, 16:36
pawn Код:
CMD:robammu(playerid, params[])
{
new skin = GetPlayerSkin(playerid); //Get player's skin (cops skins) https://sampwiki.blast.hk/wiki/Skins:All
if(skin == 265 || skin == 266 || skin == 267 || skin == 284 || skin == 285 || skin == 286 || skin == 287 || skin 288) return 1; //cops
if (Robammu[playerid] == 0 )
if(IsPlayerInRangeOfPoint(playerid,2.0,1367.3114,-1280.8257,13.5469))
{
SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit Ierocu veikalu!");
Robammu[playerid] = 1;
timer2 = SetTimerEx("RobAmmu", 10000, false, "i", playerid);
SetTimerEx("after2", 50000, false, "i", playerid);
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
} else {
SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
}
return 1;
}