Raised This Month: $ Target: $400
 0% 

Could someone recode this .sma file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pnoibestylin
Member
Join Date: Nov 2006
Old 09-06-2007 , 03:39   Re: Could someone recode this .sma file
Reply With Quote #4

Quote:
Originally Posted by arkshine View Post
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?
Pnoibestylin is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode