2 way command
#1

moO! how to make it so that /gods turns the health and armour back to 100 the /gods already turns armour and health to infinity i just wanna know how to get it back to like a normal player

pawn Код:
if(strcmp(cmdtext, "/gods", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE ON");
            SetPlayerArmour(playerid, INFINITY);
            SetPlayerHealth(playerid, INFINITY);
        }
        return 1;
    }
    else
    {
        if(strcmp(cmdtext, "/gods", true) == 0)
        {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, COLOR_MAGENTA, "GODSMODE OFF");
        }
    }
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)