I really don't know if this has been made before. I searched, but i didn't find anything... Anyway.With this plugin, you can create chat rooms, where you and your friends can chat using '!' or whatever the character you've defined(default is '!'). You can lock and open rooms with voting. When a room is closed, no one can enter it.
> <On/Off> <default:1
> <1 - if you're dead and others in your chat room are alive, they wont be able to see what you're writing. Default cs chat system. 0 - Everyone in your group will be able to see what you're writing without checking if you're dead or alive.> <default:1
> <Min players to open a room that's locked. If there are more less players than this cvar, the room will open when everyone has voted.> <default:2
> <On/Off, chat room chat's text will be displayed in a green color, so you can easily notice it.> <default:1
<name> - create a new chat room.
<name> - join a specific chat room.
- leave your current room.
- displays a list of members currently in chat room.
- displays your current room.
- vote for room opening.
- vote for room closing.
When you've joined a chat room, you'll still be able to chat with everyone. You've to write '!' before your text, if you want only the chat room members to see it. Example:
(Chatrooms_name)*Status*Nick : Hi Joe
Let's say our chat room's name is: "family", and you're dead. Nick - Joke:
(family)*DEAD*Joke : Hi Joe
If i would be alive:
(family)Joke : Hi joe
If everyone leaves a room > It's automaticly deleted. You can create it again. The good thing about this plugin is, that you don't have to create or join a chat room every time you connect. You just have to set your default chat room, and 5 seconds after you've connected it'll automaticly add you to the chat room you've specified. If the chat room doesn't exist, it'll create it. You can set your default chatroom by setting info in your console:
setinfo my_room your_chatroom
For example - i want to join a chat room called: "chickens", after i connect:
There can be max 6 players in a room, but you can change that number in the source(.sma) file. You can change the chat room chat prefix there too. There is no need to change the max chat rooms number, because there can't be more than 32 players online, and everyone of them can only create 1 room.
Just change these lines:
#define CHAT_PREFIX '!' - To change the prefix for chat room chat.
#define MAX_CHATTERS 6 - Max players in one room.
The room will close only when every member has voted to close it. I've changed and added client commands and cvars.
This isn't a 100% tested version. I tested it alone, so i can't be sure if every command works properly!
*Changed cvars and client commands(/openroom to /makeroom - amx_chatroom_deadchat to amx_cr_deadchat)
*Added a room closing/opening system. You can vote to close a room by typing /closeroom and vote to open it again with /openroom.
*Added 2 new cvars: amx_cr_min_open - min players to open a room, amx_cr_greentext - chatrooms text appiers green.
*Added a new client command: /room - displays your current room.
*Seriously optimized the code. Made few stocks, and did a little recoding.
*Added support for *SPEC* flag if you're chatting from spectator.
*Fixed some little bugs. Can't exactly remember..
*Optimization.. thanks to hawk.