Quote:
Originally Posted by Calg00ne
pawn Код:
public AutoR() { new Float: fHealth; for(new playerid=0; playerid<MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 5, 563.4977, 2079.7036, 50.0636)) { if(IsPlayerInAnyVehicle(playerid)) { GetVehicleHealth(GetPlayerVehicleID(playerid), fHealth); if(fHealth < 300) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); GameTextForPlayer(playerid, "Vehicle Repaired!",2000,5); } } } } } return 1; }
Untested.
|
thanx but i want auto repair for all players in only in area if(IsPlayerInRangeOfPoint(playerid, 5, 563.4977, 2079.7036, 50.0636)) but i want it for only admin in full map anywhere....