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

Forum mod


Post New Thread Reply   
 
Thread Tools Display Modes
djme2k
Member
Join Date: Mar 2005
Old 03-26-2005 , 20:04  
Reply With Quote #211

can you make a mini version of your plug with out the cs stat module ?
djme2k is offline
djme2k
Member
Join Date: Mar 2005
Old 03-26-2005 , 21:00  
Reply With Quote #212

ok after reading your code i got it to work and now i laught about 2 yours finding the problem about the crash.

really great work i must say.

one problem. the clients doenst get the message to register their self if they are not registered.

and in additional would be nice to get it with admin icons to work.
but so that you can say, every registered board member get automaticly a icon as registered member.
djme2k is offline
robbob4
Senior Member
Join Date: Jan 2005
Old 03-27-2005 , 00:19  
Reply With Quote #213

theres and edit button, and they'll only get a message if registering is enforced atm.
robbob4 is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-27-2005 , 17:07  
Reply With Quote #214

To allow registered forummembers at the expense of unregistered players :
Quote:
Originally Posted by Johnny got his gun
A quick fix is to move adminslots.amxx below forummod.amxx in plugins.ini. Or you could move forummod.amxx above adminslots.amxx, either way you like it....
Tried this, won't work.

The first part of my plugins.ini :
Code:
; AMX Mod X plugins


; Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
forummod.amxx
admincmd.amxx		; basic admin console commands
;adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
;multilingual.amxx	; Multi-Lingual management
Console output of amx_plugins command :
Code:
23:58:09 amx_plugins
23:58:09 Currently loaded plugins:
         name               version  author            file             status   
         Admin Base         1.00     AMXX Dev Team     admin.amxx       running  
         Forum mod          0.6.3    JGHG              forummod.amxx    running  
         Admin Commands     1.00     AMXX Dev Team     admincmd.amxx    running  
         Slots Reservation  1.00     AMXX Dev Team     adminslots.amxx  running
I think two things may be the reason that this doesn't work :
1. forummod provides the flags b and m AFTER users are logged in (if this is true, then assigning flag b doesn't make any sense)
2. adminslots.amxx/Slot Reservation looks for more than just flag b

Have you got any other ideas ?
__________________
Janet Jackson is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-27-2005 , 17:43  
Reply With Quote #215

No you are wrong, it does work. I tested it, it works, and here's why:

Forummod adds access flags within client_authorized.
Adminslots checks that the player has ADMIN_RESERVATION (b) flag within client_authorized and kicks if it's not found.

Because forummod is loaded before adminslots it will receive client_authorized before adminslots and thus adds flags if possible.
Johnny got his gun is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-27-2005 , 17:52  
Reply With Quote #216

Ok, then I think I did something wrong when editting forummod.sma before compiling and/or with the fm_access cvar.

Right now it's like this :
In amxx.cfg:
Code:
fm_access "bm"
In forummod.sma
Code:
#define FMACCESS				ADMIN_LEVEL_A
Any suggestions on what I should change ? (registered users should not gain extra rights, except for the slot reservation)
__________________
Janet Jackson is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-28-2005 , 04:35  
Reply With Quote #217

Make sure that the cvar fm_access has a b in it when the server is up and running.
You can also try this updated adminslots.sma that prints out what access flags it sees on the player and also what it decides to do... it prints out in server console.
Attached Files
File Type: sma Get Plugin or Get Source (adminslots.sma - 482 views - 3.7 KB)
Johnny got his gun is offline
Zadouk
New Member
Join Date: Mar 2005
Old 03-28-2005 , 13:43  
Reply With Quote #218

I finally got the plugin to work but 1 problem. My stats never get updated. It connects to the db fine it tags people who arent registered, but never updates my stats. Im using phpBB.
Zadouk is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-28-2005 , 16:17  
Reply With Quote #219

You opened up the sma and read the instructions before compiling?
Johnny got his gun is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-28-2005 , 16:29  
Reply With Quote #220

Finally we got it to work. One of the mistakes I made was leaving my ID field in my forum profile empty (was testing, forgot to fill it in again). FYI : we now use it with Simple Slots, I like that one better than the default slot reservation system.


Works like a charm.

Thanks for your effort, Johnny. Now I can rate your plugin
__________________
Janet Jackson is offline
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 07:01.


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