AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Join Spectator admins only in Zombie Plague Advance (https://forums.alliedmods.net/showthread.php?t=172043)

Slackerok 11-14-2011 08:02

Join Spectator admins only in Zombie Plague Advance
 
Hello guys. Please show where must modiffy a part of code in plugin http://forums.alliedmods.net/showthr...Plague+Advance to change Acces to M 6 (spectator) for admins only (flag d) independently player is dead or live. I try to change code

Quote:

if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & g_access_flag[ACCESS_ADMIN_MENU]))
to

Quote:

if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & ADMIN_BAN))
but in result alive simple players dont have acces to M 6, but dead simple players have access to M 6 ...
Please help?!?

Dark Style 11-14-2011 08:36

Re: Join Spectator admins only in Zombie Plague Advance
 
I don't understand the function, but try this:
Code:

if (!g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & ADMIN_BAN))
->>
Code:

if (g_isalive[id] || !get_pcvar_num(cvar_blocksuicide) || (userflags & ADMIN_BAN))

Slackerok 11-14-2011 09:28

Re: Join Spectator admins only in Zombie Plague Advance
 
Thanx advance :)


All times are GMT -4. The time now is 08:23.

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