God mode command
#3

pawn Код:
if(!strcmp(cmdtext, "/godmode", true, 3)) // If typed /godmode
    { // then
        if(IsPlayerAdmin(playerid)) //checks if is an admin (rcon)
        SetPlayerHealth(playerid, 999999999); // set the health to 999999999
    }
This only works if you are an RCON admin. Use /rcon login [password in server.cfg]

You'd practically be invulnerable unless someone shoots you 22727272 times with a deagle which would take around 28409090 seconds.
Reply


Messages In This Thread
God mode command - by Ryan_Michael - 21.07.2012, 14:26
Re: God mode command - by Why - 21.07.2012, 14:30
Re: God mode command - by Chriham3 - 21.07.2012, 14:31
Re: God mode command - by Ryan_Michael - 21.07.2012, 14:34
Re: God mode command - by Chriham3 - 21.07.2012, 14:35
Re: God mode command - by Georgi166 - 21.07.2012, 14:37
Re: God mode command - by Excel™ - 21.07.2012, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)