Temp godmode at spawn?
#2

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:
pawn Код:
public stopgod(playerid)
{
  SetPlayerHealth(playerid,100.0);
  return 1;
}
Your 'SetTimerEx' execution has to look like this:
pawn Код:
SetTimerEx("stopgod",30000,0,"i",playerid);//i = integer (8), f = float (8.0), s = string ("8")
Reply


Messages In This Thread
Temp godmode at spawn? - by biltong - 20.01.2010, 19:19
Re: Temp godmode at spawn? - by Joe Staff - 20.01.2010, 19:26
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 09:28
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:09
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:34
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:40
Re: Temp godmode at spawn? - by biltong - 23.01.2010, 10:47
Re: Temp godmode at spawn? - by llama - 23.01.2010, 10:55
Re: Temp godmode at spawn? - by bluray - 23.01.2010, 11:44
Re: Temp godmode at spawn? - by llama - 23.01.2010, 11:52

Forum Jump:


Users browsing this thread: 7 Guest(s)