08.10.2011, 11:38
There is no need for protect variable and other things
Also
Its working for you cos its returning 0 replace that "i" and add playerid behind
pawn Код:
OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 9999);
SetTimerEx("UnProtect", 5000, 0, "d", playerid);
return 1;
}
forward UnProtect(playerid);
public UnProtect(playerid)
{
SetPlayerHealth(playerid, 100);
return 1;
}
pawn Код:
SetTimerEx("UnPro", 7000, 0, "i");