amx_default_access problem

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
Post Reply
User avatar
likux35
Ar jis surinks 50 žinučių?
Posts: 41
Joined: 2015 May 29 22:41
Skype: likux35
Contact:

Re: amx_default_access problem

Post by likux35 »

Infamous2017 wrote:Hello, I have the following problem. I want all players to get VIP when they join the server. 95% of the time it works. The players who are also VIP in the users.ini also got the flags "bitr". But there are players who still have flag Z and are not VIP. My question is now, what's the problem and how can I fix the problem .... Help?


// Default value: "z"
amx_default_access "bitr"

// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_ad"


Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.698-dev
Build date: 16:51:39 Sep 21 2019 (1988)
Build from: https://github.com/dreamstalker/rehlds/commit/3be1c46

game version
ReGameDLL version: 5.15.0.476-dev
Build date: 10:27:46 Mar 27 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/ff9f214
I don`t think that you need it, becouse these settings is working normally. Check your plugins or configs.
But anyway:

Code: Select all

#include <amxmodx>#include <engine> // Flag for "no check" immunity#define FLAG_IMMUNITY ADMIN_LEVEL_C public plugin_init(){    register_plugin("FREE VIP FIX", "1.0", "saimon");        for(new i = 1; i <= get_maxplayers(); i++)     {        if(is_user_connected(i) && (!(get_user_flags(i) & FLAG_IMMUNITY)))         {            set_task(5.0, "fix_permissions", i);        }    }} public fix_permissions(id){     set_user_flags(id, read_flags("bitr"));  }
Attachments
freevip_fix.sma
Same plugin as SMA file
(451 Bytes) Downloaded 375 times

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests