Raised This Month: $ Target: $400
 0% 

[EASY] How to make something for admin only


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-09-2016 , 12:30   Re: [EASY] How to make something for admin only
Reply With Quote #10

Quote:
Originally Posted by siriusmd99 View Post
Add under OnTakeDamagePost:

if(!is_user_admin(attacker)) return HAM_IGNORED
your one had error compile, didnt recognise your line

Quote:
Originally Posted by OciXCrom View Post
Simply add the following where all the checks are (you can easily spot them):

PHP Code:
if(!(get_user_flags(attacker) & ADMIN_MENU)) return HAM_IGNORED
your one work perfect. but i didnt know where a check was so i was asking if you could put it in the code, and i would then look at the code i posted and the one you would post to see what you changed in it, so next time i would know what a check is
New and Clueless 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:27.


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