 |
|
Member
|

09-06-2007
, 03:39
Re: Could someone recode this .sma file
|
#4
|
Quote:
Originally Posted by arkshine
Try this :
Code:
#include <amxmodx> #include <fakemeta> #define ADMIN_LEVEL ADMIN_IMMUNITY new knifekill = 0; public plugin_init() { register_plugin( "One Hit Knife Kills", "1.3", "Rabid Baboon" ); register_forward( FM_AlertMessage, "blocksuicide" ); } public client_damage( attacker, victim, damage, wpnindex, hitplace, TA ) { if( is_user_alive( victim ) ) return; if( attacker == victim ) return; if( !( get_user_flags( attacker ) & ADMIN_LEVEL ) ) return; if( wpnindex == CSW_KNIFE && TA != 1) { if( damage != DMG_FALL ) { knifekill = 1; if( hitplace == HIT_HEAD ) make_deathmsg( attacker, victim, 1, "knife" ); else make_deathmsg( attacker, victim, 0, "knife" ); user_silentkill( victim ); set_pev( attacker, pev( attacker, pev_frags ) + 1 ); } } } public blocksuicide( at_type, message[] ) { if( containi( message ,"suicide" ) > -1 && containi( message, "world" ) > -1 && knifekill == 1 ) { knifekill = 0; return FMRES_SUPERCEDE; } return FMRES_IGNORED; }
|
oh wow! it compiled succesfully. thank you very much. 
buh ahm. how much damage does it do ?
and wat admin_level u need to have to get to use this?
|
|
|
|