02.11.2014, 20:24
Yes I do..
**Ignore this:
Btw, I don't think that it cause that error because commands like:
, work.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return SendClientMessage(playerid, 0xFF0000,"{BABABA}Invalid Command: Type /help for more information."); }
Quote:
return SendClientMessage(playerid, 0xFF0000,"{BABABA}Invalid Command: Type /help for more information."); |
Код:
COMMAND:god(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,0xFF0000FF,"{FF0000}[SERVER]{BABABA}You're not authorized to use that command."); SetPlayerHealth(playerid, 100000); return 1; }