16.04.2015, 23:17
Код:
CMD:cisti(playerid,params[]) { new vozilo = GetPlayerVehicleID(playerid); if(PlayerInfo[playerid][cistac] == IDPOSLA) { if(!KosacTrave(vozilo)) return SCM(playerid,COLOR_GRAD4,"[Greska]: Moras biti u vozilu za ciscenje."); if(GetPVarInt(playerid,"Cisti") == 1) return SCM(playerid,COLOR_GRAD4,"[ERROR]: Vec cistis ulice."); SetPVarInt(playerid,"Cisti",1); SetPVarInt(playerid,"CP",3); SetPlayerCheckpoint(playerid,2444.4646,-28.8980,26.4293); PlayerPlaySound(playerid, 1058, 0, 0, 0); } else SCM(playerid,COLOR_GRAD4,"Nemas posao."); return 1; }