Authorization plugin instead of native amxx
Hi everybody!
I write a plugin to replace amxx native user authorization engine. It requests the database for user info and sets flags according to user's group. 4 now I’ve done the following: Code:
#include <amxmodx>1. The procedure of checking is called every round which is 2 often. And it starts only when a player is alive and has joined a team 2. This method disallows the slot reservation mechanism. I’ve tried to add the following: Code:
This is my first plugin and everything I’ve done I've done by reading this forum. But now I couldn't fide answer for the question here: Q1: How to call my function after amxx calls its own. Or if it s possible even disable amxx native authorization mechanism? Maybe smb suggests an other salvation. To my mind: 1. At player connects server plugin should check his info and set flags according to group (top admin, common admin, vip, user) and flag "z" to other not registered users. 2. The same when client_infochanged 3. In future I want to disable slot reservation in my server. And therefore when an admin or vip connects full server the plugin should kick one of not registered players with worst kills/deaths coefficient. So my second question is: Q2: how can I get players list with their kill/deaths information? |
Re: Authorization plugin instead of native amxx
try with client_putinserver(id). if that doesn't work, just disable the amxx auth. (find where amxx does it, rescript it or strip it) or just add your function to the amxx way.
get_user_kills get_user_deaths |
Re: Authorization plugin instead of native amxx
Thanks a lot.
|
Re: Authorization plugin instead of native amxx
Don't use userinfo for password storing. It can be stolen on other server.
|
Re: Authorization plugin instead of native amxx
Ok, I can change it whenever I want. Why server print '2345' if password is '12345' ?
|
Re: Authorization plugin instead of native amxx
What are you talking about? Please make a new thread for your question since your question doesn't appear to be about the original post.
|
| All times are GMT -4. The time now is 06:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.