[Include] DRCMD - Fast and easy command process!
#8

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (zcmd_g_HasOPCS && !CallLocalFunction("OnPlayerCommandReceived", "is", playerid, cmdtext))
    {
        return 1;
    }
    new
        pos,
        funcname[MAX_FUNC_NAME];
    while (cmdtext[++pos] > ' ')
    {
        funcname[pos-1] = tolower(cmdtext[pos]);
    }
    format(funcname, sizeof(funcname), "cmd_%s", funcname);
    while (cmdtext[pos] == ' ') pos++;
    if (!cmdtext[pos])
    {
        if (zcmd_g_HasOPCE)
        {
            return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, "\1"));
        }
        return CallLocalFunction(funcname, "is", playerid, "\1");
    }
    if (zcmd_g_HasOPCE)
    {
        return CallLocalFunction("OnPlayerCommandPerformed", "isi", playerid, cmdtext, CallLocalFunction(funcname, "is", playerid, cmdtext[pos]));
    }
    return CallLocalFunction(funcname, "is", playerid, cmdtext[pos]);
}
if (zcmd_g_HasOPCS && !CallLocalFunction("OnPlayerCommandReceived", "is", playerid, cmdtext))

u mad bro? I think you just copied ZCMD include and change it to DRCMD that's shit man!!!

Also next time use more commands not one (See ******es post)
Reply


Messages In This Thread
DRCMD - Fast and easy command process! - by Drake1994 - 27.01.2012, 13:41
Re: DRCMD - Fast and easy command process! - by Lorenc_ - 27.01.2012, 13:44
Re: DRCMD - Fast and easy command process! - by Drake1994 - 27.01.2012, 13:46
Re: DRCMD - Fast and easy command process! - by Lorenc_ - 27.01.2012, 13:47
Re: DRCMD - Fast and easy command process! - by Drake1994 - 27.01.2012, 13:48
Re: DRCMD - Fast and easy command process! - by Drake1994 - 27.01.2012, 14:46
Re: DRCMD - Fast and easy command process! - by Drake1994 - 09.03.2012, 13:30
Re: DRCMD - Fast and easy command process! - by System64 - 09.03.2012, 17:30
Re: DRCMD - Fast and easy command process! - by Drake1994 - 09.03.2012, 18:33
Respuesta: DRCMD - Fast and easy command process! - by Kurama - 10.03.2012, 05:21
Re: DRCMD - Fast and easy command process! - by Drake1994 - 10.03.2012, 05:48
Re: DRCMD - Fast and easy command process! - by Reklez - 10.03.2012, 05:56
Re: DRCMD - Fast and easy command process! - by Ballu Miaa - 10.03.2012, 06:17
Re: DRCMD - Fast and easy command process! - by Drake1994 - 10.03.2012, 07:22
Re: DRCMD - Fast and easy command process! - by System64 - 10.03.2012, 08:45
Re: DRCMD - Fast and easy command process! - by Drake1994 - 10.03.2012, 09:13
Re: DRCMD - Fast and easy command process! - by Danee - 10.03.2012, 09:32
Re: DRCMD - Fast and easy command process! - by Chaster - 10.03.2012, 09:46
Re: DRCMD - Fast and easy command process! - by System64 - 10.03.2012, 10:17
Re: DRCMD - Fast and easy command process! - by Drake1994 - 10.03.2012, 10:20
Re: DRCMD - Fast and easy command process! - by System64 - 10.03.2012, 10:32
Re: DRCMD - Fast and easy command process! - by Drake1994 - 10.03.2012, 11:07

Forum Jump:


Users browsing this thread: 1 Guest(s)