2 way command
#2

Maybe, just a wild guess :
pawn Код:
new god[MAX_PLAYERS];


if(strcmp(cmdtext, "/gods", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            if(god[playerid] == 0)
            {
            god[playerid] = 1;
            SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE ON");
            SetPlayerArmour(playerid, INFINITY);
            SetPlayerHealth(playerid, INFINITY);
            }
           
            if(god[playerid] == 1)
            {
            god[playerid] = 0;
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE OFF");
            }
        }
    return 1;
    }
Reply


Messages In This Thread
2 way command - by willsuckformoney - 10.07.2010, 11:09
Re: 2 way command - by ViruZZzZ_ChiLLL - 10.07.2010, 11:21
Re: 2 way command - by TheInnocentOne - 10.07.2010, 11:25
Re: 2 way command - by Cameltoe - 10.07.2010, 11:27
Re: 2 way command - by ViruZZzZ_ChiLLL - 10.07.2010, 11:28
Re: 2 way command - by willsuckformoney - 10.07.2010, 11:30
Re: 2 way command - by Cameltoe - 10.07.2010, 11:40
Re: 2 way command - by ViruZZzZ_ChiLLL - 10.07.2010, 11:45
Re: 2 way command - by willsuckformoney - 10.07.2010, 11:47
Re: 2 way command - by Cameltoe - 10.07.2010, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)