Raised This Month: $ Target: $400
 0% 

ADMFLAG_ROOT for a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anonpiss
Senior Member
Join Date: Jan 2010
Old 06-03-2010 , 22:15   Re: ADMFLAG_ROOT for a plugin
Reply With Quote #1

Any examples? I tried looking at other codes, did trial and error but still failed to compile without errors.
anonpiss is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 06-03-2010 , 22:50   Re: ADMFLAG_ROOT for a plugin
Reply With Quote #2

Quote:
Originally Posted by anonpiss View Post
Any examples? I tried looking at other codes, did trial and error but still failed to compile without errors.



Find "client"
Replace it with "i"

Code:
public OnGameFrame() {
    if (g_bDoubleJump) {                            // double jump active
        for (new i = 1; i <= MaxClients; i++) {        // cycle through players
            if (IsClientInGame(i) && IsPlayerAlive(i))
            {
                if (GetUserFlagBits(i) & ADMFLAG_ROOT)
                {
                    DoubleJump(i)                        // Check for double jumping
                }
            }
        }
    }
}
You have to define the variable BEFORE you try to use it <_<

Last edited by Afronanny; 06-03-2010 at 22:53.
Afronanny 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 03:13.


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