20.03.2010, 18:53
Well I can get one CMD in but I can't happen to get another working one in. It looks like this.
Could someone please help?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/shutdownmsg", true) == 0) { // Send a message to everyone. SendClientMessageToAll(0xDEEE20FF, "Server ShutDown - |||5 Minutes|||"); return 1; } return 0; if(!strcmp(cmdtext, "/serverstats", true)) { SendClientMessage(playerid, 0xFFFFFFFF, "Current Server Version: |v0.1| Last Update: Saturday, March 20th, 2010|"); return 1; /* Returning '1' is used to notify the server that the command has successfully been processed. If you return true here you won't get that 'SERVER: Unknown Command.', and any conflicts will be avoided. */ } return 0; /* Returning '0' is used to inform the server that the command has not been successfully processed, and passes it to other scripts. If there hasn't been a successful process, then you will get that 'SERVER: Unknown Command.' error. */ }