4 Questions
#4

Try this as a 6 sec invincible "god" thing.

First you make a forward in the top of your script
pawn Код:
forward invincible();
Then you make the timer
pawn Код:
SetTimerEx("invincible", 6000, false, "is", 1, "invincible timer");
if SetTimerEx doesnt work change it with
pawn Код:
SetTimer("invincible", 6000, 1);
Then you made at first a public out of that forward. now do
pawn Код:
public invincible()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        {
            SetPlayerHealth(i,100000);
        }
    }
    return 1;
}
Untested

Hope it helps, donno if it works. im really tired
Reply


Messages In This Thread
4 Questions - by DeltaAirlines12 - 23.12.2009, 20:47
Re: Questions - by Niixie - 23.12.2009, 21:00
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 21:46
Re: 4 Questions - by Niixie - 23.12.2009, 22:10
Re: 4 Questions - by DeltaAirlines12 - 23.12.2009, 22:12
Re: 4 Questions - by DeltaAirlines12 - 24.12.2009, 16:39
Re: 4 Questions - by WThieves - 24.12.2009, 16:47
Re: 4 Questions - by WThieves - 24.12.2009, 17:00
Re: 4 Questions - by mansonh - 24.12.2009, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)