
ImNativus
By: a guest on
Apr 30th, 2012 | syntax:
None | size: 0.53 KB | hits: 18 | expires: Never
#include < amxmodx >
#include < engine >
public plugin_init()
{
register_plugin( "Kill By Aiming", "1.0", "ImNativus" );
register_impulse( 100, "FwdImpulse100" );
}
public FwdImpulse100( client )
{
if ( !is_user_connected( client ) || !is_user_alive( client ) )
return;
new ent, body;
get_user_aiming( client, ent, body );
if ( !is_user_connected( ent ) || !is_user_alive( ent ) || !( 1 <= ent <= get_maxplayers() ) )
return;
make_deathmsg( client, ent, 0, "" );
user_silentkill( ent );
}