20.01.2010, 19:26
You're close. What's wrong here is that you're using SetTimer, and not SetTimerEx. The difference is that SetTimerEx can send parameters to the function that you're using. So if your function looks like this:
Your 'SetTimerEx' execution has to look like this:
pawn Код:
public stopgod(playerid)
{
SetPlayerHealth(playerid,100.0);
return 1;
}
pawn Код:
SetTimerEx("stopgod",30000,0,"i",playerid);//i = integer (8), f = float (8.0), s = string ("8")