Raised This Month: $ Target: $400
 0% 

[REQ] Soccerjam Plugin (Tournament)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
phertz2620
Junior Member
Join Date: Jan 2009
Old 06-06-2010 , 11:33   Re: [REQ] Soccerjam Plugin (Tournament)
Reply With Quote #7

Quote:
Originally Posted by unnyquee View Post
@ 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.
It this for the Tournament version ?

Its only for the std. SoccerJam
phertz2620 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