I need help
#1

Hi I want to do a code that when a player enter a wrong command it says (SERVER) Wrong command.

Is simple but i cant do :S

Please help me
Reply
#2

SA:MP does that already. Or do you mean you want a custom message there instead of "SERVER: Unknown command."
Reply
#3

It should be by default, if it still happens enter return 0; at the end of OnPlayerCommandText.
Reply
#4

pawn Код:
return 1;
}
else
SendClientMessage(playerid,COLOR_WHITE,"<!>ERROR: The command %s does not exist.Please try /help, /teles or /v to spawn a vehicle.",cmdtext);
return 1;
}
Put that at the finish of OnPlayerCommandText instead
pawn Код:
return 1;
}return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)