Page 1 of 1

Re: amx_default_access problem

Posted: 2020 Apr 02 23:27
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"));  }