Raised This Month: $ Target: $400
 0% 

[REQ] Soccerjam Plugin (Tournament)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 06-03-2010 , 12:18   Re: [REQ] Soccerjam Plugin (Tournament)
Reply With Quote #6

@ KiWigamez0r: you'll have to return HAM_HANDLED; after SetHamParamFloat for this to work.

PHP Code:
#include <hamsandwich>

public plugin_init()
      
RegisterHam(Ham_TakeDamage"player""Fwd_Ham_TakeDamage_Pre"0);

public 
Fwd_Ham_TakeDamage_Pre(iVictimiInflictoriAttackerFloat:flDamageiDamageBits)
{
      if(
is_user_alive(iAttacker) && (iVictim != ballholder) && (iAttacker != ballholder))
            return 
HAM_SUPERCEDE;
      
      return 
HAM_IGNORED;

Don't have time to test, but it should work. Give me a feedback, anyway, please .
By the way, this should replace KiWi's code. No offence, you can test them both.
__________________

Last edited by unnyquee; 06-03-2010 at 12:26.
unnyquee 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 19:45.


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