 |
|
Junior Member
|

06-06-2010
, 11:33
Re: [REQ] Soccerjam Plugin (Tournament)
|
#7
|
Quote:
Originally Posted by unnyquee
@ 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(iVictim, iInflictor, iAttacker, Float:flDamage, iDamageBits) { 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
|
|
|
|