Raised This Month: $32 Target: $400
 8% 

[EASY] How to make something for admin only


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-09-2016 , 13:16   Re: [EASY] How to make something for admin only
Reply With Quote #11

If it works, it works. You can add the line anywhere between/above/below these lines:

PHP Code:
if(victim == attacker) return HAM_IGNORED//self damage
if(inflictor != attacker) return HAM_IGNORED//prevent from other damage like bazooka, tripmine we need knife damage only
if(!is_user_connected(attacker)) return HAM_IGNORED//non-player damage
if(get_user_weapon(attacker) != CSW_KNIFE) return HAM_IGNORED//current weapon is not knife 

Last edited by OciXCrom; 01-09-2016 at 13:17.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 15:24.


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