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

Solved is_user_admin(id) , does not check after map change


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-16-2020 , 08:02   Re: is_user_admin(id) , does not check after map change
Reply With Quote #21

Quote:
Originally Posted by DJBosma View Post
PS3: I saw the nvault_prune. Does “* 2” indicate days?
Yes

Quote:
Originally Posted by DJBosma View Post
PS2: I’m not seeing a function where it removes the rights and prunes the vault every day.
Every map change it will prune records that have not had activity for over 2 days.

Quote:
Originally Posted by DJBosma View Post
PS: I saw that it saves the seconds played when user disconnects. Does he/she receive flags right away or after next round?
Flags remain on the player for the entire connection on the server. Rounds do not matter. If they disconnect and reconnect or on map change, flags are reapplied.

Quote:
Originally Posted by DJBosma View Post
The only thing is - !skill a command where the user could see the same info as dhud but in chat( when for example he/she missed the Dhud in the beginning of the round. And “you are a pro player” will only show when command is typed.
I forgot to add !skill cmd
__________________
Bugsy is offline
DJBosma
Member
Join Date: Dec 2009
Old 03-16-2020 , 13:35   Re: is_user_admin(id) , does not check after map change
Reply With Quote #22

So could you add !skill please?

Last edited by DJBosma; 03-16-2020 at 13:36.
DJBosma is offline
DJBosma
Member
Join Date: Dec 2009
Old 03-16-2020 , 15:51   Re: is_user_admin(id) , does not check after map change
Reply With Quote #23

I've changed
Quote:
plugin_authorized
to
Quote:
client_authorized
And every round it does not get further than showing the message under, and not adding flags
Quote:
show_dhudmessage( iPlayer , "To become veteran play %d minutes. Type !veteran" , VeteranInfo[ Veteran ][ SecondsNeeded ] / 60 );
I've set mp_roundtime 2 and changed the map multiple times after the first round end's

PS: I'm alone in the server.

PS2: Now the issue is that it says You are a Pro player and user has no flags.

Last edited by DJBosma; 03-17-2020 at 10:22. Reason: Post got to long cause of code(which is invalid)
DJBosma is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-16-2020 , 16:29   Re: is_user_admin(id) , does not check after map change
Reply With Quote #24

The player has pro flags, but I did not remove the USER flag and this is likely confusing is_user_admin(), I will fix that
__________________
Bugsy is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-16-2020 , 17:26   Re: is_user_admin(id) , does not check after map change
Reply With Quote #25

Try the above code. Added !skill and fixed flags issue.
__________________
Bugsy is offline
DJBosma
Member
Join Date: Dec 2009
Old 03-17-2020 , 06:45   Re: is_user_admin(id) , does not check after map change
Reply With Quote #26

Sill does not add flags. When it displays in the chat that “You are a pro”.
I’ve changed again plugin_authorized to client_authorized, sill no change.

The only other thing I’ve changed is

Quote:
{ 0 , "" , 0 },
{ 60 , "abcdefghijkl" , 0 },
{ 120 , "abcdefghijklmnopqrs" , 0 }
No flags are added after multiple disconnect and map change.
DJBosma is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-17-2020 , 08:15   Re: is_user_admin(id) , does not check after map change
Reply With Quote #27

Woops, sorry about that plugin_authorized() thing, I fixed it.

Do you have any other plugins running that modify flags?
__________________
Bugsy is offline
DJBosma
Member
Join Date: Dec 2009
Old 03-17-2020 , 08:46   Re: is_user_admin(id) , does not check after map change
Reply With Quote #28

Quote:
Originally Posted by Bugsy View Post
Woops, sorry about that plugin_authorized() thing, I fixed it.

Do you have any other plugins running that modify flags?
Amxbans which adds flags thru users.ini & xsql

PS: when I disable amxbans it runs like a charm. Should I provide you the amxbans code? I didn’t had this issue with the code on my first post.

PS2: I’ve tried to put this plugin above amxbans, this does not solve the issue whatsoever.

Last edited by DJBosma; 03-17-2020 at 09:33.
DJBosma is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-17-2020 , 10:27   Re: is_user_admin(id) , does not check after map change
Reply With Quote #29

You cannot run 2 plugins that each modify flags.
__________________
Bugsy is offline
DJBosma
Member
Join Date: Dec 2009
Old 03-17-2020 , 10:35   Re: is_user_admin(id) , does not check after map change
Reply With Quote #30

Quote:
Originally Posted by Bugsy View Post
You cannot run 2 plugins that each modify flags.
So.. can you implement this in Amxbans ? What other solutions are there to use both?

PS: what about the default admin.amxx which uses users.ini along side this veteran plugin? There sure must be a way..

Last edited by DJBosma; 03-17-2020 at 12:10.
DJBosma 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 18:03.


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