09.05.2016, 17:19
PHP код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
new string[180];
format(string, sizeof(string), "The command '%s' doesn't exist. Please check /cmds.", cmdtext); // "doesn't exist" is maybe false - Replace /cmds by your help command.
return (!success ? SendClientMessage(playerid, -1, string) : 1); // return : the command succeed ? No : return a message (SendClientMessage(playerid, -1, string) OR Yes : return 1
}