Admin & VIP acces
I've found this piece of code and i want to know if it's ok and i can use it on my server...
I want admin & users to be able to join the server when they want, and a random normal player must be kicked if the server it's full. The flag that i'm using for VIP players it's b (only slot reservation) can anybody help me? thanks in advance |
Re: Admin & VIP acces
The code looks well. You have only one problem
When your server is full, the plugin won't work. Because steam wouldn't you connect to the server. The only way to fix this is to reserve one slot or to hide one (like the amxx plugin adminslots.amxx). I would guess you to use this plugin. |
Re: Admin & VIP acces
Quote:
How does the plugin kick one random player? I don't understand... And will users with flag "b" be kicked? thanks 4 u time! |
Re: Admin & VIP acces
I think that maybe is_user_admin(id) called in client_authorized(id) will give inconsistent results. So, sometimes it will say the user is not an admin even though they really are, it just hasn't gotten far enough for AMX to apply the admin priveleges yet.
|
Re: Admin & VIP acces
Quote:
it that possible? |
Re: Admin & VIP acces
I was wrong, AMX uses client_authorized(). You can look in adminslots.sma to see how they do it.
In your code you don't reference reservations anywhere. |
Re: Admin & VIP acces
Quote:
|
Re: Admin & VIP acces
Quote:
|
Re: Admin & VIP acces
Quote:
How do normal users are "kicked" it's randomly? ty! |
Re: Admin & VIP acces
No, it's not used like that...
Look at your own code in your first post. |
| All times are GMT -4. The time now is 15:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.