Help How to make Unknow Command ?
#7

Both of your guys' code do the exact same thing.

pawn Код:
// ** INCLUDES

#include <a_samp>
#include <zcmd>

// ** MAIN

main()
{
    print("Loaded \"custom_unknown_cmd_msg_zcmd.amx\".");
}

// ** CALLBACKS

public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        SendClientMessage(playerid, -1, "Hey, you have entered an invalid command!");
    }
    return 1;
}

// ** COMMANDS

CMD:test(playerid, params[])
{
    SendClientMessage(playerid, -1, "You have used /test.");
    return 1;
}
Reply


Messages In This Thread
Help How to make Unknow Command ? - by michaellong676 - 06.01.2016, 04:58
Re: Help How to make Unknow Command ? - by SickAttack - 06.01.2016, 05:19
Re: Help How to make Unknow Command ? - by michaellong676 - 06.01.2016, 05:36
Re: Help How to make Unknow Command ? - by SickAttack - 06.01.2016, 05:41
Re: Help How to make Unknow Command ? - by Amunra - 06.01.2016, 05:58
Re: Help How to make Unknow Command ? - by AbyssMorgan - 06.01.2016, 06:13
Re: Help How to make Unknow Command ? - by SickAttack - 06.01.2016, 06:42

Forum Jump:


Users browsing this thread: 1 Guest(s)