19.01.2015, 10:47
Chat System
Here is a chat system that contains the most chat command if anyone have any suggest or found any bug feel free to post hereCommands:
/pm (To Send a private message to a player)
/pms (Toggle between block and unblock private messages)
/wc (Virtual world chat)
* nezo2001 (To put your name before the wrods like that "Nezoo is showing an example for you ")
/shout (To shout like "Stop"! (nezoo shout))
/mute (To prevent player to chat in the main chat 'With Timer' "For Rcon only you can change this to your admin information")
/unmute (To enable him to talk in the chat and kill the timer "Same as above")
/w (whisper which show the message for the near player only with radius 100 "You can change it")
/cc (Car chat to chat with the player in the car only
How to change to your admin information:
Just change this:
PHP код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You can't use this command");
PHP код:
if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR_RED, "You can't use this command"); //Here change it to your information
Link: http://pastebin.com/x2C7wnNA
As i said if you found any bug or you have any suggest feel free to post it here.
Please leave a feedback,
Ahmed_Nezoo