Quote:
Originally Posted by Clive
pawn Код:
public AutoR() { for(new playerid=0; playerid<MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { new Float:health, cid; if (IsPlayerInAnyVehicle(playerid)) { if(IsPlayerAdmin(playerid)) return 0; cid = GetPlayerVehicleID(playerid); GetVehicleHealth(cid, health); if (health < 300) { SetVehicleHealth(cid,1000); GameTextForPlayer(playerid, "Vehicul reparat!",2000,5); } } } } return 1; }
|
Actualy
pawn Код:
if(!IsPlayerAdmin(playerid)) continue;
Quote:
Originally Posted by deviljingoku
.....i want auto reair vehicle for only admin..
}
|
Quote:
Originally Posted by deviljingoku
....now i dont want it only for admin....
|