godcar
#5

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.

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;
}
Reply


Messages In This Thread
godcar - by manchestera - 27.11.2011, 19:36
Re: godcar - by MP2 - 28.11.2011, 07:34
Re: godcar - by Aira - 28.11.2011, 07:40
Re: godcar - by =WoR=G4M3Ov3r - 28.11.2011, 07:40
Re: godcar - by Emmet_ - 28.11.2011, 07:50
Re: godcar - by System64 - 28.11.2011, 08:16
Re: godcar - by Emmet_ - 28.11.2011, 08:20
Re: godcar - by manchestera - 28.11.2011, 17:28
Re: godcar - by manchestera - 30.11.2011, 18:16
Re: godcar - by MP2 - 30.11.2011, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)