31.10.2009, 18:28
This under includes or what ever your forwards are
forward AutoR();
under public OnGameModeInit()
SetTimer("AutoR", 1000, 1);
and add this at the bottom of your script
forward AutoR();
under public OnGameModeInit()
SetTimer("AutoR", 1000, 1);
and add this at the bottom of your script

Quote:
|
public AutoR() { for(new playerid=0; playerid<MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { new Float:health, cid; if (IsPlayerInAnyVehicle(playerid)) { cid = GetPlayerVehicleID(playerid); GetVehicleHealth(cid, health); if (health < 300) { SetVehicleHealth(cid,1000); SendClientMessage(playerid, COLOR_CYAN, "~*~ Your Car Was Auto Fixed ~*~"); } } } } return 1; } |

