Quote:
Originally Posted by ƒa†es™
Can i ask something ?
what is this :
// Head Shot was made
Do i have to do something ?
|
That is a comment, it is letting you know that is the location where you put your code to react when a headshot was made.. as you asked for in your original post.
Here is bomb kill
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
new g_iMaxPlayers;
#define IsEntity(%1) (%1 > g_iMaxPlayers)
public plugin_init()
{
register_plugin( "Death by Bomb" , "1.0" , "bugsy" )
RegisterHam( Ham_Killed , "player" , "fw_HamKilled" );
g_iMaxPlayers = get_maxplayers();
}
public fw_HamKilled( iVictim , iKiller , iShouldGib )
{
static szKiller[21];
if ( IsEntity( iKiller ) )
{
pev( iKiller , pev_classname , szKiller , 20 );
//env_explosion
if ( ( szKiller[ 0 ] == 'e' ) && ( szKiller[ 2 ] == 'v' ) && ( szKiller[ 5 ] == 'x' ) && ( szKiller[ 9 ] == 's' ) )
{
//iVictim was killed by C4 bomb
}
}
}
__________________