Godmode Command Help[ZCMD]
#7

Quote:
Originally Posted by Kurtis96z
Посмотреть сообщение
Awesome, Jonny that worked.

Any idea how I could modify what ive done so that my global messages saying a player is using godmode/isnt using godmode can be changed to display the actual players name instead of just the word player?



Sorry, I'll delete my post there :C
pawn Код:
#define INFINITY                (Float:0x7F800000)
new GodMode[MAX_PLAYERS];



CMD:godmode(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
        SendClientMessageToAll(COLOR_RED, " An Admin is now in god mode!");
    }
    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
        SendClientMessageToAll(COLOR_RED, "An Admin is now in god mode!");
    }
    return 1;
}
Reply


Messages In This Thread
Godmode Command Help[ZCMD][SOLVED] - by Kurtis96z - 02.06.2012, 23:21
Re: Godmode Command Help[ZCMD] - by BleverCastard - 02.06.2012, 23:25
Re: Godmode Command Help[ZCMD] - by Kurtis96z - 02.06.2012, 23:29
Re: Godmode Command Help[ZCMD] - by Jonny5 - 02.06.2012, 23:52
AW: Godmode Command Help[ZCMD] - by Nero_3D - 02.06.2012, 23:57
Re: Godmode Command Help[ZCMD] - by Kurtis96z - 03.06.2012, 00:00
Re: Godmode Command Help[ZCMD] - by Edward156 - 03.06.2012, 00:04
Re: Godmode Command Help[ZCMD] - by Jonny5 - 03.06.2012, 00:04
Re: Godmode Command Help[ZCMD] - by Kurtis96z - 03.06.2012, 00:09
Re: Godmode Command Help[ZCMD] - by Edward156 - 03.06.2012, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)