28.12.2009, 18:13
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return SendClientMessage(playerid,COLOR_WHITE,"This command does not exist, Please type /commands for a list");
}
If someone types in a command that dont exist