Raised This Month: $95 Target: $400
 23% 

Simple Slots Reservation


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Backstabnoob (8)
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 12-21-2013 , 11: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 - 870 views - 2.6 KB)
__________________

Last edited by Jhob94; 10-13-2014 at 18:30. Reason: small update
Jhob94 is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 12-22-2013 , 12: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
Location: Derbent, Caucasian
Old 12-22-2013 , 15: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: Portugal
Old 12-23-2013 , 09: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 , 07: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: Portugal
Old 12-24-2013 , 07: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 , 11: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?
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 12-24-2013 , 12: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 , 12: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: Portugal
Old 12-24-2013 , 12: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 13: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 14:26.


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