dcmd help
#5

hmmm like this?

pawn Код:
dcmd_god(playerid, params[])
{
    if(strcmp(params, "0", true)==0) {
        new pid;
        if(sscanf(params, "u", pid)) return SendClientMessage(playerid, Yellow, "Usage: /god 1/0");
        if(level[playerid] >= 1) {
            SetPlayerHealth(playerid, 100);
        }
        else if(strcmp(params, "1", true)==0) {
            new pid;
            if(sscanf(params, "u", pid)) return SendClientMessage(playerid, Yellow, "Usage: /god 1/0");
            if(level[playerid] >= 1) {
                SetPlayerHealth(playerid, 10000);
            } else SendClientMessage(playerid, White, "SERVER: Unknown command.");
        }
        return 1;
}
but gives me alot of errors

@Grim_ I like dcmd I will stick with it
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: 2 Guest(s)