dcmd help
#6

pawn Код:
pGod[MAX_PLAYERS];
pawn Код:
dcmd_god(playerid, params[])
{
    if(level[playerid] >= 1) SendClientMessage(playerid, White, "SERVER: Unknown command.");
    else
    {
        if(sscanf(params, "u", params)) return SendClientMessage(playerid, 0xF97804FF, "Usage: /god 1/0");
        if(strcmp(params, "0", true)==0)
        {
        SetPlayerHealth(playerid, 100);
        pGod[playerid] = 0;
        }
        else if(strcmp(params, "1", true)==0)
        {
        SetPlayerHealth(playerid, 10000);
        pGod[playerid] = 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
dcmd help - by xir - 31.12.2010, 12:57
Re: dcmd help - by xir - 01.01.2011, 12:07
Re: dcmd help - by Grim_ - 01.01.2011, 12:12
Re: dcmd help - by DRIFT_HUNTER - 01.01.2011, 12:12
Re: dcmd help - by xir - 01.01.2011, 12:31
Re: dcmd help - by HyperZ - 01.01.2011, 14:23
Re: dcmd help - by _rAped - 01.01.2011, 14:53
Re: dcmd help - by xir - 01.01.2011, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)