06.01.2016, 06:42
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;
}