[EASY] How to make something for admin only
can you make this for admin only? thanks!
Spoiler
|
Re: [EASY] How to make something for admin only
Which admin flag you want it to be on?
|
Re: [EASY] How to make something for admin only
Quote:
|
Re: [EASY] How to make something for admin only
Simply add the following where all the checks are (you can easily spot them):
PHP Code:
|
Re: [EASY] How to make something for admin only
You can add
#define FLAG ADMIN_LEVEL_H in .sma file, then you just need to compile it ;) |
Re: [EASY] How to make something for admin only
Quote:
|
Re: [EASY] How to make something for admin only
Quote:
|
Re: [EASY] How to make something for admin only
I don't have to check it, I know that it wouldn't do anything. Add the code that I told you to, you don't need anything else.
|
Re: [EASY] How to make something for admin only
Add under OnTakeDamagePost:
if(!is_user_admin(attacker)) return HAM_IGNORED |
Re: [EASY] How to make something for admin only
Quote:
Quote:
|
| All times are GMT -4. The time now is 09:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.