11.09.2018, 04:00
Quote:
why not?
look it: Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "!cmd", true)) { SendClientMessage(playerid, -1, "Message 1"); return 1; } if(!strcmp(cmdtext, "&cmd", true)) { SendClientMessage(playerid, -1, "Message 2"); return 1; } if(!strcmp(cmdtext, "@cmd", true)) { SendClientMessage(playerid, -1, "Message 3"); return 1; } return 0; } |
Quote:
This callback is called when a player enters a command into the client chat window. Commands are anything that start with a forward slash, e.g. /help. |