AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with Plugin! (https://forums.alliedmods.net/showthread.php?t=223372)

devu4 08-12-2013 19:20

Help with Plugin!
 
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

Black Rose 08-12-2013 20:52

Re: Help with Plugin!
 
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()


All times are GMT -4. The time now is 15:51.

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