31.03.2015, 05:49
delete that and add the following code.
Basically what you'd do would be to change the value of the last return in "OnPlayerCommandText" for your message.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return SendClientMessage(playerid, -1, "Server unkown command. Check '/help' to get commands help");
}