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

Remove vip's acces from chat admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desure
Junior Member
Join Date: Jun 2022
Old 07-31-2022 , 12:24   Remove vip's acces from chat admin
Reply With Quote #1

Hello,

I want to remove acces for vip users to admin chat (u@) to don't see it anymore , any suggestions? may be from adminchat or just some small changes somewhere?
Desure is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-31-2022 , 14:34   Re: Remove vip's acces from chat admin
Reply With Quote #2

Assign a different flag to your vips could work easily.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 08-01-2022 , 05:22   Re: Remove vip's acces from chat admin
Reply With Quote #3

adminchat.sma

line 221
replace the original for loop with this
Code:
 for (new bool:is_sender_admin = is_user_admin(id) != 0 && get_user_flags(id) != ADMIN_LEVEL_H, i = 0; i < inum; ++i)
tested and it works, except it won't work for admins that are also VIP if your VIP plugin only uses the FLAG "t" or FLAG_H to assign VIPs.

I might also just be wrong, happy to be corrected by someone more knowledgeable.
__________________

Last edited by deprale; 08-01-2022 at 05:24.
deprale is offline
Desure
Junior Member
Join Date: Jun 2022
Old 08-01-2022 , 08:58   Re: Remove vip's acces from chat admin
Reply With Quote #4

I will try both metods and i will write back, thanks guys for now
Desure is offline
Desure
Junior Member
Join Date: Jun 2022
Old 08-01-2022 , 10:28   Re: Remove vip's acces from chat admin
Reply With Quote #5

I changed flags in cmdacces.ini ( i flag ) and it's working just fine
Desure 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 20:06.


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