Raised This Month: $ Target: $400
 0% 

addip/banid implementation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
facuq
Junior Member
Join Date: Feb 2007
Old 02-05-2007 , 00:31   addip/banid implementation
Reply With Quote #1

I've been trying to do my own [efficient, meaning usable] implementation of these commands using a plugin, and i wanted to know if any of you had ideas for it. What first comes to mind is simple creating an array or similar data structure with all the temporarily banned players, and use a task to decrease remaining ban time by one every minute, but i'm not sure this would work well as i've read task should be used little and carefully.
So, the main question is: Does anyone see any problem with this, or could this create problems with the server if i had too many banned players? (too many ~= 15?)
If so, any suggestions for an alternative way of doing this would be appreciated.

PS: the mininum ban time could be raised so the task is executed less often, or to decrease remaining ban time on every map change.
facuq is offline
 


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 00:38.


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