Raised This Month: $ Target: $400
 0% 

[SOLVED] Prevent shooting players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-13-2011 , 16:32   Re: Prevent shooting players
Reply With Quote #1

Code:
#include <fakemeta> #define m_LastHitGroup 75 public tk(victim, inflictor, killer, damage, bits) {     if (killer == victim)     {             return HAM_IGNORED;     }     if (enabled[killer] != enabled[victim]) {         set_pdata_int(victim, m_LastHitGroup, HIT_CHEST);         return HAM_SUPERCEDE;     }     return HAM_IGNORED }

That should work. If not, it stills looks better than what you had.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-13-2011 at 17:17.
Exolent[jNr] 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:26.


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