Raised This Month: $ Target: $400
 0% 

Possible or Impossible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-13-2014 , 17:15   Re: Possible or Impossible?
Reply With Quote #5

PHP Code:
New bool:inDuel[33]
// add this to plugin init
RegisterHam(Ham_TakeDamage"player"player_damage1)

public 
player_damage(victimattackerFloat:damageFloat:direction[3], tracehandledamagebits)
{
 if(!
is_user_connected(victim) || !is_user_connected(attacker) || victim == attacker)
          return 
HAM_IGNORED
 
if(!inDuel[attacker] || !inDuel[victim])
          return 
HAM_SUPERCED    
 
return HAM_IGNORED


Last edited by Natsheh; 10-14-2014 at 09:01.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 17:30.


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