Raised This Month: $ Target: $400
 0% 

[adminslots.sma] Not hiding slots properly - and other fixes


  
 
 
Thread Tools Display Modes
Author Message
Marticus
Member
Join Date: Nov 2004
Old 12-22-2005 , 14:04   [adminslots.sma] Not hiding slots properly - and other fixes
#1

Well, all I need to say is gaben. The plugin might appear to be working for most only because it is pure dumb luck. I simplified and corrected many things in this plugin which still has residual olo code. See ackSignal for details. *grin*

The only serious change I made to the way it functions is through usage of amx_reservedslots cvar instead of amx_reservation cvar which, I believe, makes more sense because amx_reservation has me thinking boolean. I also changed the #define to a cvar amx_hideslots to give admins more control over the way it works without modifying source code. I created a global and set the hide slot routine in plugin_init instead of every freaking time someone authenticates and disconnects.

Anyway, the changes I proposed are found in the modified file located in my own svn repository.

If there are issues with it, I would most certainly appreciate some feedback.

http://svn.marticus.org/viewvc/viewc...s.sma?view=log

Best,
-Marticus

Someone get this freaking duck away from me!
Marticus is offline
Marticus
Member
Join Date: Nov 2004
Old 12-22-2005 , 14:08  
#2

Oh yeah, I did several truth tables and made a flow chart on the following block of code and it just doesn't work. I removed the function as it was useless anyway.

Code:
        new num = players + 1

	if (players == maxplayers)
		num = maxplayers
	else if (players < limit)
		num = limit
Marticus is offline
faluco
Developer
Join Date: Mar 2005
Location: Valencia, Spain
Old 01-06-2006 , 19:35  
#3

added to CVS, thanks!!
faluco is offline
 



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 23:11.


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