Raised This Month: $ Target: $400
 0% 

ghost ADMIN CVAR


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sgs
Junior Member
Join Date: Feb 2016
Old 02-13-2016 , 07:30   Re: ghost ADMIN CVAR
Reply With Quote #4

Quote:
Originally Posted by Artifact View Post
Try this, I dont understand what is your question too but I'd like to help

PHP Code:
public DeathMsg(){
    if(
endround)
        return;
    
    if(
get_pcvar_num(cvar_admin) != 0){
        if(!
is_user_admin(read_data(2)))
            return;
    }
    
    
ghost(read_data(2));

----->

PHP Code:
public DeathMsg(){
    if(
endround)
        return;
    
    if(
get_pcvar_num(cvar_admin) != 0){
        if(!
get_user_flags(read_data(2)) & ADMIN_LEVEL_A)
            return;
    }
    
    
ghost(read_data(2));

That's right, that's what I wanted. line (164) "if(!get_user_flags(read_data(2)) & ADMIN_LEVEL_A)"

warning: 213 tag mismatch
sgs is offline
 



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 09:33.


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