23.12.2009, 22:10
Try this as a 6 sec invincible "god" thing.
First you make a forward in the top of your script
Then you make the timer
if SetTimerEx doesnt work change it with
Then you made at first a public out of that forward. now do
Untested
Hope it helps, donno if it works. im really tired
First you make a forward in the top of your script
pawn Код:
forward invincible();
pawn Код:
SetTimerEx("invincible", 6000, false, "is", 1, "invincible timer");
pawn Код:
SetTimer("invincible", 6000, 1);
pawn Код:
public invincible()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
SetPlayerHealth(i,100000);
}
}
return 1;
}
Hope it helps, donno if it works. im really tired