16.08.2012, 08:38
For more commands:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do another thing here return 1; } return 0; }