28.11.2011, 07:50
(
Последний раз редактировалось Emmet_; 28.11.2011 в 08:21.
)
lol, all the answers are wrong...
You didn't use SetTimerEx, therefore you didn't pass the playerid, so it's always going to work for ID 0, but try this instead:
Edit: Thanks for System64 for pointing out an error.
You didn't use SetTimerEx, therefore you didn't pass the playerid, so it's always going to work for ID 0, but try this instead:
Edit: Thanks for System64 for pointing out an error.

pawn Код:
forward AutoR();
public AutoR()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerInAnyVehicle(i) && GodMode[i])
{
RepairVehicle(GetPlayerVehicleID(i));
SetVehicleHealth(GetPlayerVehicleID(i), 1000.0);
}
}
return 1;
}