How to disconnect someone if they have a specified setinfo?
How do I make the server disconnect someone who has a specified setinfo (for example setinfo _ttt 15 or setinfo _pw 2250)?
So if someone with setinfo _pw 2250 joins, they get disconnected? I tried something but it doesn't work :( |
Re: How to disconnect someone if they have a specified setinfo?
When they join, get the setinfo value and then if it equals the value you want, disconnect them
|
Re: How to disconnect someone if they have a specified setinfo?
But how?
|
Re: How to disconnect someone if they have a specified setinfo?
PHP Code:
|
Re: How to disconnect someone if they have a specified setinfo?
Why do people avoid the actual kick command?
PHP Code:
|
Re: How to disconnect someone if they have a specified setinfo?
Ok this works but only for _pw. If I put anything else (example _gd) it doesn't work.
And how do I make the server ban and not kick? Tried banid but it doesn't work :( |
Re: How to disconnect someone if they have a specified setinfo?
Not really sure, but this should work:
PHP Code:
|
Re: How to disconnect someone if they have a specified setinfo?
Still only works with _pw. Have no idea why.
|
Re: How to disconnect someone if they have a specified setinfo?
Because you need to set the info somewhere ?
Because players config.cfg are read only so the setinfo is not save, but _pw was there and was existing before ? Try to think a bit. |
Re: How to disconnect someone if they have a specified setinfo?
No. setinfo _ttt 15 was in my config.cfg and it didn't kick me
|
| All times are GMT -4. The time now is 21:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.