Chat Rooms 1.0
1 Attachment(s)
Chat Rooms 1.0 Description: 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. Cvars: amx_chatrooms <1/0> <On/Off> <default:1> amx_cr_deadchat <1/0> <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> amx_cr_min_open <number> <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> amx_cr_greentext <1/0> <On/Off, chat room chat's text will be displayed in a green color, so you can easily notice it.> <default:1> Client Commands: /makeroom <name> - create a new chat room. /joinroom <name> - join a specific chat room. /leaveroom - leave your current room. /members - displays a list of members currently in chat room. /room - displays your current room. /openroom - vote for room opening. /closeroom - 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: Quote:
Quote:
Quote:
Just change these lines: Quote:
This isn't a 100% tested version. I tested it alone, so i can't be sure if every command works properly! Changelog: 0.7 *Initial Release 0.8 *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.. 0.9 *Cleaned code. 1.0 *Optimization.. thanks to hawk. |
Re: Chat Rooms 0.7
Interesants plagins. :)
Eng : Interesting... |
Re: Chat Rooms 0.7
Suggestion:
A command such as "close_chat" so people can have their own rooms |
Re: Chat Rooms 0.7
DruGzOG, didn't really catch your idea... They already have their own rooms. Only those who know the exact name of the room can enter. You mean completely block the chat? Only allow show the chat room chat? Or what?
|
Re: Chat Rooms 0.7
I meant as in they can lockdown their chat room so no one else can enter it
|
Re: Chat Rooms 0.7
Sounds nice. Still I would add the define "MAX_CHATTERS" to a cvar. Also a nice thing to see in next version, would be some kind of color system. So, all chat messages would be red or something else.
|
Re: Chat Rooms 0.7
Quote:
|
Re: Chat Rooms 0.7
Ah ye, my bad. Didn't even read the code. :I
|
Re: Chat Rooms 0.7
Quote:
|
Re: Chat Rooms 0.7
No. You would still have to recompile it. Updated. Reread the first post. Take a look at changed too.
|
All times are GMT -4. The time now is 09:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.