Players vban - Voice Ban command
Players use vban command when connect into server and mute/unmute players.
vban execute two arguments, ex. vban 1 1 I'm not sure what purpose have second argument, because I have tested with bots, it just identical with first argument. But vban command execute hexadecimal values, which is ban list :wink: Just convert hex string to decimal, then use player slot as shift bit in binary. (Slot start from index 0) PHP Code:
|
Re: Players vban - Voice Ban command
Since the arguments are bitfields of which player to ban or not it can only store info of up to 32 players in one argument, so the second argument is for the other players, if the server has more than 32 slots.
See the code here. Here's more info about the VoiceMask user message, which contains this info as well as info about which other players the player is able to hear (e.g. teammates). The usermessage sent by the server might be more reliable against players spaming shit ;) |
Re: Players vban - Voice Ban command
Nothing really to say about this, looks nice.
I'm a big fan of using as less characters as possible in loops, like: PHP Code:
PHP Code:
|
Re: Players vban - Voice Ban command
Thx for info @Peace-Maker.
Some day update snip to read argument(s) depending server max player size. And perhaps look those user messages. Ok @xines. I'm not really coder... So I try name variables as words to get more readable etc. etc. :) |
| All times are GMT -4. The time now is 18:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.