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

Help with Plugin!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devu4
Member
Join Date: Apr 2012
Old 08-12-2013 , 19:20   Help with Plugin!
Reply With Quote #1

Hello, So I am using Admin Prefixes to do my server's admin tags. I made some modifications so admins could hide their tags when they say /hide. However the problem is when one Admin says /hide, it hides everyone's admin tags. I want to just hide the tag of the admin who said /hide not everyone's.

Does anyone know how to fix this? This is the edited plugin:

Spoiler

Last edited by devu4; 08-12-2013 at 19:22.
devu4 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-12-2013 , 20:52   Re: Help with Plugin!
Reply With Quote #2

It doesn't even compile.

Edit:
Don't overcomplicate.
Code:
new g_bhidetag[33]

Replace all get_bit(g_bhidetag, id) with g_bhidetag[id]

Code:
public hidetag(id) {     g_bhidetag[id] = 1 - g_bhidetag[id]         set_hudmessage(0, 255, 0, -1.0, 0.01, 0, 0.75, 0.75, 0.75, 0.75, 2)         if(g_bhidetag[id])         show_hudmessage(id,"You are now untagged")     else         show_hudmessage(id,"You are now tagged!") }

You should also add g_bhidetag[id] = 0 in client_putinserver()
__________________

Last edited by Black Rose; 08-12-2013 at 21:11.
Black Rose 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 06:10.


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