#2

Edit again ;

pawn Код:
#include a_samp
#include zcmd

new GodMode[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    GodMode[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    GodMode[playerid] = 0;
    return 1;
}

CMD:god(playerid, params[])
{
    if(GodMode[playerid] == 0)
    {
        SetPlayerHealth(playerid, 99999);
        SetPlayerArmour(playerid, 99999);
        GodMode[playerid] = 1;
    }
    else if(GodMode[playerid] == 1)
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GodMode[playerid] = 0;
    }
    return 1;
}
try this..
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)