Quote:
Originally Posted by Xyrex
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { //Commands here if(strcmp(cmd, "/pay", true) == 0) { if(IsPlayerConnected(playerid)) { } return 1; } return SendClientMessage(playerid, COLOR,"Bad command, do /help to see all avaible commands"); }
|
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 код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)return SendClientMessage(playerid,-1,"That command does not exist, please use /help or /cmds.");
return 1;
}