Raised This Month: $ Target: $400
 0% 

Join Spectator admins only in Zombie Plague Advance


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Slackerok
Junior Member
Join Date: Mar 2010
Old 11-14-2011 , 08:02   Join Spectator admins only in Zombie Plague Advance
Reply With Quote #1

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?!?
Slackerok is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-14-2011 , 08:36   Re: Join Spectator admins only in Zombie Plague Advance
Reply With Quote #2

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))
Dark Style is offline
Slackerok
Junior Member
Join Date: Mar 2010
Old 11-14-2011 , 09:28   Re: Join Spectator admins only in Zombie Plague Advance
Reply With Quote #3

Thanx advance
Slackerok 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 08:23.


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