13.12.2014, 10:39
Hi all
Im trying to send a specific message if i use a cmd don't exist on gm.
What code i need to use?
Im trying to send a specific message if i use a cmd don't exist on gm.
What code i need to use?
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) {
SendClientMessage(playerid, /*hex code of color*/, "Unknown command!!!!!1111"); // enter whatever you want here.
}
return 1;
}
pawn Код:
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/mycommand", true))
{
// Nothing here.
return 1;
}
return SendClientMessage(playerid, -1, "{FFCC33}This command doesn't exists.");
}