Raised This Month: $32 Target: $400
 8% 

Simple Slots Reservation


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Backstabnoob (7)
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 12-21-2013 , 10:12   Simple Slots Reservation
Reply With Quote #1

Simple Slots Reservation
- v0.0.7, last updat at : 13/10/2014

This plugin only reservates the slot(s) if the amount of admins connected is lower then the amount of slots reservated.
So if you have one slot reserved and one admin is connected, others players are able to join till the server get full. If you have one slot reserved and there is no admins connected, that last slot is reserved for some admin and others players cant join.

Admin Flag: b
Cvar: ssr_amount "#amount of reserved slots"

Credits
  • AmxModX Development Team - Used them slots reservation plugin as base for this one
  • pokemonmaster - Kick Stock (Stock removed)
  • Backstabnoob - Scripting Suggestions
  • Arkshine - Scripting Suggestions


Notes
  • Make sure you arent running the default amxx slots reservation plugin while you run this one.
  • The multi-language file uploaded is from default amxx reservation slots plugin. If you already have it, you dont need to replace.
Attached Files
File Type: sma Get Plugin or Get Source (slots_reservation.sma - 1882 views - 2.6 KB)
__________________

Last edited by Jhob94; 10-13-2014 at 17:30. Reason: small update
Jhob94 is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 12-22-2013 , 11:43   Re: Simple Slots Reservation
Reply With Quote #2

#FirstComment
Great Idea .
Gj!
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-22-2013 , 14:38   Re: Simple Slots Reservation
Reply With Quote #3

thaks dude, gj )
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 12-23-2013 , 08:31   Re: Simple Slots Reservation
Reply With Quote #4

Quote:
Originally Posted by PoLiCe View Post
#FirstComment
Great Idea .
Gj!
Quote:
Originally Posted by Fuck For Fun View Post
thaks dude, gj )
Thanks both, did one small update. Just deleted some unnecessary lines
__________________
Jhob94 is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 12-24-2013 , 06:19   Re: Simple Slots Reservation
Reply With Quote #5

Can you add cvar for using a native like is_user_vip?

I'm using is_user_vip for my server since I hate using flags for it, works better with sql aswell. VIPs would love it.
__________________
jingojang is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 12-24-2013 , 06:30   Re: Simple Slots Reservation
Reply With Quote #6

Quote:
Originally Posted by jingojang View Post
Can you add cvar for using a native like is_user_vip?

I'm using is_user_vip for my server since I hate using flags for it, works better with sql aswell. VIPs would love it.
Edit the flag for your VIP flag
__________________
Jhob94 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-24-2013 , 10:25   Re: Simple Slots Reservation
Reply With Quote #7

Nice work, definitely shown a lot of improvement from your previous plugins.

Haven't tested it yet but this works with plugins like amxbans and such?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 12-24-2013 , 11:51   Re: Simple Slots Reservation
Reply With Quote #8

Quote:
Originally Posted by DruGzOG View Post
Nice work, definitely shown a lot of improvement from your previous plugins.

Haven't tested it yet but this works with plugins like amxbans and such?
Yes it works with amxbans. And should work with any other plugin, except if it is reservation slots plugin.
__________________
Jhob94 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-24-2013 , 11:54   Re: Simple Slots Reservation
Reply With Quote #9

You should skip bots when you get_players.
Nice plugin anyway.
__________________
Kia is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 12-24-2013 , 11:58   Re: Simple Slots Reservation
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
You should skip bots when you get_players.
Oh yes, will be done at next update

Edit:
Updated, now doesnt check if bots are admin.
__________________

Last edited by Jhob94; 12-24-2013 at 12:33.
Jhob94 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode