Raised This Month: $32 Target: $400
 8% 

read_flags() doesn't working


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-21-2017 , 21:56   Re: read_flags() doesn't working
Reply With Quote #11

Quote:
Originally Posted by EFFx View Post
I used %d too.
Yeah but it failed to format because you used %s in the format.
__________________
fysiks is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 22:06   Re: read_flags() doesn't working
Reply With Quote #12

Yeah now it printed what you said

Code:
L 06/21/2017 - 23:05:39: [Access_VIP.amxx] Player Player(ID: 1) has connected on the server. He hasn't 'qt' flags, giving those...
L 06/21/2017 - 23:05:39: [Acesso_VIP.amxx] 589824
But it wont write on the users.ini
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-21-2017 , 22:36   Re: read_flags() doesn't working
Reply With Quote #13

Quote:
Originally Posted by EFFx View Post
Yeah now it printed what you said

Code:
L 06/21/2017 - 23:05:39: [Access_VIP.amxx] Player Player(ID: 1) has connected on the server. He hasn't 'qt' flags, giving those...
L 06/21/2017 - 23:05:39: [Acesso_VIP.amxx] 589824
But it wont write on the users.ini
As Crazy posted, set_user_flags() doesn't edit users.ini. It modifies only the current player session (maybe even only the current map; I can't remember). There is no function that I know of that modifies a user's flags in users.ini.
__________________
fysiks is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 22:47   Re: read_flags() doesn't working
Reply With Quote #14

admin.sma uses the set_user_flags() and it prints the amx_addadmin command parameters there.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-21-2017 , 23:04   Re: read_flags() doesn't working
Reply With Quote #15

Yeah, that's how the flags get from a file to being used in the server (it reads from the file to get the info from disk and then uses set_user_flags to put that information into the running server). The only writing to file occurs in AddAdmin(). This adds admins to the file, it does not do any editing and is only called in the amx_addadmin command.
__________________

Last edited by fysiks; 06-21-2017 at 23:05.
fysiks is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 23:36   Re: read_flags() doesn't working
Reply With Quote #16

So I should open the .ini file to write new flags there?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-22-2017 , 01:46   Re: read_flags() doesn't working
Reply With Quote #17

Yep, maybe you can store the player flags in another .ini file via name or steamid, but since every time the player connects to the server it receives admin_level_h (if not has), why do you necessarily need to save in the users.ini?

In the configuration file have a option to set a flag level for common users, by default, "z". You can change to " t" flag, this wont help you?
__________________









Last edited by CrazY.; 06-22-2017 at 01:58.
CrazY. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-22-2017 , 09:13   Re: read_flags() doesn't working
Reply With Quote #18

Quote:
Originally Posted by EFFx View Post
So I should open the .ini file to write new flags there?
Well, yeah, that's your only choice if you want to edit the users.ini file.
__________________
fysiks is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-22-2017 , 11:59   Re: read_flags() doesn't working
Reply With Quote #19

Ok, ty.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply


Thread Tools
Display Modes

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 13:16.


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