29.04.2012, 19:03
BEER-samp, he wants to change the SERVER: Unknown command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/test", true, 5) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Text here!");
return 1;
}
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: This command doesn't exist. Please use /commands");
}