The rooms created by the server owner in the .cfg could be like:
Code:
"VoiceRooms"
{
"room"
{
"name" "Admin"
"flags" "b" // generic admin only
"pass" "cgadusub" // must know pass to enter
}
"room"
{
"name" "General"
}
"room"
{
"name" "HLDJ"
}
"room"
{
"name" "Troll Den"
}
}
Every individual can create 1 room of their own, and set one of their own passwords.
Make a menu with the password setting command listed in a sort of 'instruction's panel after creating their own room.
sm_vr for voiceroom command
/vr create/open/make "name"
[SM] You have created a personal voiceroom.
/vr destroy/delete/close
[SM] You have deleted your personal voiceroom.
/vr lock
[SM] You have locked your personal voiceroom.
- Your room is still "registered" and perhaps saved by clientprefs - but it won't appear in the list of voicerooms and nobody can join. (People can leave).
/vr unlock
[SM] You have unlocked your personal voiceroom.
- Basically this command allows for saving a registered room via clientprefs. Make the rooms default to locked when a player's room is loaded from clientprefs.
/vr check
[SM] Your voiceroom, "name", is [un]locked, with [no/the] password[./: "pass"]
/vr password "pass"
[SM] You have set your voiceroom password to "pass".
/vr password off
or
/vr nopass
to disable it
[SM] You have disabled your voice room's password.
__________________