#3

pawn Код:
CMD:god(playerid, params[])
{
    if(GodMode[playerid] == 0)
    {
        SetPlayerHealth(playerid, 99999);
        SetPlayerArmour(playerid, 99999);
        GodMode[playerid] = 1; // its shout be like that becose after you become "god" and use
      //command again you still will be and cant check if you are alredy or not
    }
    else if(GodMode[playerid] == 1)
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
    }
    return 1;
}
Reply


Messages In This Thread
/god - by BenMArs - 30.07.2012, 11:51
Re: /god - by Devilxz97 - 30.07.2012, 12:06
Re: /god - by doreto - 30.07.2012, 12:09
Re: /god - by Devilxz97 - 30.07.2012, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)