07.07.2011, 19:20
(
Последний раз редактировалось RockFire; 07.07.2011 в 19:53.
)
PHP код:
new bool:GodCar[MAX_PLAYERS] = false, GC_Timer;
public OnPlayerCommandText(playerid,cmdtext[]) {
if(!strcmp(cmdtext,"/godcarro",true)) {
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid,-1,"Vocк nгo й administrador");
if(GodCar[playerid] == false) {
SendClientMessage(playerid,-1,"GOD CARRO ATIVADO");
GC_Timer = SetTimerEx("GodCarro",1500,true,"i",playerid);
}
else {
SendClientMessage(playerid,-1,"GOD CARRO DESATIVADO");
KillTimer(GC_Timer);
}
return true;
}
return false;
}
forward GodCarro(playerid);
public GodCarro(playerid) return RepairVehicle(GetPlayerVehicleID(playerid));