Raised This Month: $ Target: $400
 0% 

Could someone recode this .sma file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 09-07-2007 , 17:44   Re: Could someone recode this .sma file
Reply With Quote #8

shuld work instant kill whit knife exept admins
but will be random hs on the death msg dont know how to
get hs -.-

Code:
 
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init() {
register_plugin("", "", "")
register_event("Damage","event_damage","be")
}
public event_damage(id)
{
new gun, attacker = get_user_attacker(id,gun)
if (is_user_alive(id) && !is_user_admin(id) && gun == CSW_KNIFE)
{
new score2 = get_user_frags(attacker)
new score = get_user_frags(id)
set_user_frags(id, score+1)
set_user_frags(attacker, score2+1)
set_user_health(id, 0)
set_msg_block(get_user_msgid("DeathMsg"),BLOCK_ONCE)
message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0,0,0}, 0)
write_byte(attacker)
write_byte(id)
write_byte(random_num(0,1))
write_string("KNIFE")
message_end()
}
return
}
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 09-08-2007 at 05:28.
fxfighter is offline
Send a message via MSN to fxfighter
 



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