PHP Code:
#include < amxmodx >
#include < fun >
new bool:g_nade[ MAX_PLAYERS + 1 ]
public plugin_init()
{
register_plugin( "CSDM NADES", "0.1", "botz" )
register_event( "DeathMsg", "death_event", "a", "1>0" )
}
public client_connect( id )
{
g_nade[ id ] = false
}
public death_event( )
{
new iKiller = read_data( 1 )
new iVictim = read_data( 2 )
if( is_user_alive( iKiller ) && !user_has_weapon( iKiller, CSW_HEGRENADE ) && !g_nade[ iKiller ] )
{
give_item( iKiller, "weapon_hegrenade" )
g_nade[ iKiller ] = true
}
g_nade[ iVictim ] = false
}
__________________