17.09.2011, 16:57
Quote:
if he have big gamemode on each command he must put ""SendClientMessage(playerid, COLOR,"Bad command, do /help to see all avaible commands");"" bether choise is like Tee say
PHP код:
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/help", true))
{
//Example
}
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.
*/
}