Don't like ads? PRO users don't see any ads ;-)
Guest

ImNativus

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include < amxmodx >
  2. #include < engine >
  3.  
  4.  
  5. public plugin_init()
  6. {
  7.         register_plugin( "Kill By Aiming", "1.0", "ImNativus" );
  8.        
  9.         register_impulse( 100, "FwdImpulse100" );
  10. }
  11.  
  12. public FwdImpulse100( client )
  13. {
  14.         if ( !is_user_connected( client ) || !is_user_alive( client ) )
  15.                 return;
  16.                
  17.         new ent, body;
  18.        
  19.         get_user_aiming( client, ent, body );
  20.        
  21.         if ( !is_user_connected( ent ) || !is_user_alive( ent ) || !( 1 <= ent <= get_maxplayers() ) )
  22.                 return;
  23.                
  24.         make_deathmsg( client, ent, 0, "" );
  25.        
  26.         user_silentkill( ent );
  27. }