God mode
#7

Quote:
Originally Posted by grantism
Посмотреть сообщение
I want a command that when you type /god you won't take damage.


If you read.. It says what i want, also, who said I was mad..
Here..

Код HTML:
CMD:god(playerid, params[])
{
    if(GodMode[playerid] == 0) //god mode not set, lets set it
    {
        SetPlayerHealth(playerid, INFINITY);    //set the health to infinity
        GodMode[playerid] = 1;    //set godmode to true
        SendClientMessage(playerid, 0xFF0000FF, "God mode Enabled");

    }
    else if(GodMode[playerid] == 1) //god mode set .. lets unset it
    {
        SetPlayerHealth(playerid, 100.0);    //set health to 100%
        GodMode[playerid] = 0;    //set godmode to false
        SendClientMessage(playerid, 0xFF0000FF, "God mode Disabled");
    }
    return 1;
}
If you type /god it will disabled the God mode.
Reply


Messages In This Thread
God mode - by grantism - 29.06.2012, 04:39
Re: God mode - by [A]ndrei - 29.06.2012, 04:46
Re: God mode - by grantism - 29.06.2012, 05:01
Re: God mode - by [A]ndrei - 29.06.2012, 05:07
Re: God mode - by Chris1337 - 29.06.2012, 05:10
Re: God mode - by grantism - 29.06.2012, 05:46
Re: God mode - by kbalor - 29.06.2012, 06:10
Re: God mode - by grantism - 29.06.2012, 06:28

Forum Jump:


Users browsing this thread: 1 Guest(s)