12.05.2014, 16:33
(
Последний раз редактировалось ossukoss; 12.05.2014 в 17:18.
)
How i can add unknow command for this gamemode(http://www.solidfiles.com/d/w5hW/).
return 0;
return SendClientMessage(playerid, 0xcolor, "SERVER: UNKNOWN COMMAND");
return 0;
At the end of OnPlayerCommandText, use
pawn Код:
pawn Код:
|
// Returning 0 informs the server that the command hasn't been processed by this script. // OnPlayerCommandText will be called in other scripts until one returns 1. // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown to the player. |
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
You can do what you said, but there really is no point, it will do it automatically. Unless you want to do a custom message/textdraw/sound whatever. |