PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "DeathMsg", "Event_DMsg", "a" );
}
public Event_DMsg()
{
new victim = read_data( 2 );
new attacker = get_user_attacker( victim );
if( attacker == victim )
return PLUGIN_HANDLED;
if( get_user_team( attacker ) == 2 && get_user_team( victim ) == 1 )
{
if( !is_user_alive( attacker ) )
return PLUGIN_HANDLED;
if( user_has_weapon( attacker, CSW_HEGRENADE ) )
return PLUGIN_HANDLED;
give_item( attacker, "weapon_hegrenade" );
}
return PLUGIN_HANDLED;
}