AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   for ADMIN (https://forums.alliedmods.net/showthread.php?t=209025)

Erdener 02-20-2013 05:44

for ADMIN
 
PHP Code:

        add(menuBody511"\r1. \wother....\w^n")
        
add(menuBody511"\r2. \wother....\w^n")
        
add(menuBody511"\r3. \wother....\w^n")
        
add(menuBody511"\r4. \wother...\w^n")
        
add(menuBody511"\r5. \wother...\w^n")
        
add(menuBody511"\r6. \wother....\w^n")
        
add(menuBody511"\r7. \wother....\w^n")
        
add(menuBody511"\r8. \wOther...\w^n")
        if(
get_user_flags(id) & ADMIN_KICK)
        {
            
add(menuBody511"\r9. \wSpiderman \y[Hook Feature]\w^n")
        }
        
add(menuBody511"\r0. \wExit^n"

for admin "Spiderman" but, other players can choose press 9

YamiKaitou 02-20-2013 05:45

Re: for ADMIN
 
Check the menu keys, if you are registering 9 as a valid key for all users, then yes they can press 9

Kard1nal 02-20-2013 06:15

Re: for ADMIN
 
Add " if(get_user_flags(id) & ADMIN_KICK)" into case 9 handler.

Erdener 02-20-2013 06:18

Re: for ADMIN
 
Quote:

Originally Posted by Kard1nal (Post 1898184)
Add " if(get_user_flags(id) & ADMIN_KICK)" into case 9 handler.

Yes, ofcourse :D thnx it works.


All times are GMT -4. The time now is 21:37.

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