Raised This Month: $51 Target: $400
 12% 

Clan tag reservation and protection


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-23-2004 , 10:10   Clan tag reservation and protection
Reply With Quote #1

Code:
Edit line #22

clantag = ""   -- replace the "" with your clan tag exactly as it appears.
This was mostly redone since the first one i came out with - this one u can edit the tag like shown above and also u can set the max amount of admins you will have. If a player does not have the tag on they will not recieve their reservation rights.

If a player is not registered and trys to join or changes while in-game then they will be kicked.

Command is amx_newmember. The file is automatically created in the configs folder. SteamIDs will be recorded to the file for the plugin to read.

When the server is fill (NOTE: plugin will leave one slot open to allow people to be scanned for tag) the plugin will scan incoming players for tag. If not found they are dropped. If the tag is found - the player with least amount of time in server will be dropped to allow the slot to stay ope n for other members to join.

Works for .16 and .20
Attached Files
File Type: sma Get Plugin or Get Source (clanslots.sma - 1443 views - 5.2 KB)
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best

~live by it
Da Bishop is offline
Send a message via MSN to Da Bishop
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 10-23-2004 , 10:42  
Reply With Quote #2

Quote:
new persontokick = 0, itime, shortest = 0x7fffffff
we can use hex in small?
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-23-2004 , 11:47  
Reply With Quote #3

why not
Da Bishop is offline
Send a message via MSN to Da Bishop
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-24-2004 , 11:41  
Reply With Quote #4

You do know this is built in, right? Take a look at users,ini.. theres a "this is a clan tag" flag, which you can just assign reserved slot priv's to it
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-24-2004 , 13:00  
Reply With Quote #5

the built in one takes up player slots instead of kicking people -- actually wrote this for a friend who didn't like the built in one
Da Bishop is offline
Send a message via MSN to Da Bishop
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 10-24-2004 , 16:14  
Reply With Quote #6

correct me if I'm wrong - but there seems to be an inherent flaw in his system where ANYONE that realizes that this plugin is installed on a server can then add the server's clan tag and then automatically give themselves reservation rights to the server.

if this plugin could utilize the flag functionality of users.ini (or admin *sql tables like YoMama's amxbans) then it would restrict the reservation system to only those that the admins designate as opposed to an open ended system.
__________________
pendragon is offline
Send a message via ICQ to pendragon
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-24-2004 , 19:19  
Reply With Quote #7

well i guess i will incorparate that in. When i wrote this plugin it was for someone who had a clan tag protector installed therefore wasn't needed.

how about in-game adding - admin adds a player to the list of people that can use the reservation?
Da Bishop is offline
Send a message via MSN to Da Bishop
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-28-2004 , 16:34  
Reply With Quote #8

This plugin has just been redone and updated*
Da Bishop is offline
Send a message via MSN to Da Bishop
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-28-2004 , 21:52  
Reply With Quote #9

wonder why i try to make things the way other people want em.. sigh..
Da Bishop is offline
Send a message via MSN to Da Bishop
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 10-31-2004 , 14:50  
Reply With Quote #10

Quote:
Originally Posted by Da Bishop
wonder why i try to make things the way other people want em.. sigh..
you never have to - if you were referring to my post then I'm sorry if it made you change something you didnt want to. I honestly don't use your plugin and don't plan to... but I thought I would just point out a possible flaw... it was nothing more than an opinion and meant as helpful insight. If you chose to take the advice - kool... if not, no harm done either.

I hope you can understand and distinguish the difference between a requested change in a plugin and a suggestion. At least in my attempt - it was a suggestion.
__________________
pendragon is offline
Send a message via ICQ to pendragon
Reply



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 04:33.


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