PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init( ) {
register_plugin( "Terr No fall dmg", "1.0", "xPaw" );
RegisterHam( Ham_TakeDamage, "player", "fwdPlayerTakeDamage" );
}
public fwdPlayerTakeDamage( index, idInflictor, idAttacker, Float:Damage, DamageBits ) {
// if( ( DamageBits & DMG_FALL ) && get_user_team( index ) == 1 )
if( DamageBits & DMG_FALL && get_user_team( index ) == 1 )
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
__________________