Raised This Month: $ Target: $400
 0% 

Show kill sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rainbow14
New Member
Join Date: Oct 2009
Old 02-06-2010 , 23:01   Show kill sprite
Reply With Quote #1

How can show Kill Streak spr and Kill Streak sound?

When I Kill Streak 1 Kill 2 Kill 3Kill

Click image for larger version

Name:	4kill.JPG
Views:	110
Size:	10.1 KB
ID:	59218

Click image for larger version

Name:	1kill.JPG
Views:	196
Size:	10.6 KB
ID:	59219
Attached Files
File Type: zip spr-sound.zip (484.6 KB, 202 views)
rainbow14 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-07-2010 , 03:49   Re: Show kill sprite
Reply With Quote #2

Nohow.
__________________
hleV is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 02-07-2010 , 04:09   Re: Show kill sprite
Reply With Quote #3

What about the TE_FIREFIELD or TE_SPRITE ?
dFF is offline
rainbow14
New Member
Join Date: Oct 2009
Old 02-07-2010 , 05:29   Re: Show kill sprite
Reply With Quote #4

Quote:
public update_icon(id) {
check_icon_loc()
if(!get_pcvar_num(pcv_show) || get_pcvar_num(pcv_iloc) == 0)
return PLUGIN_CONTINUE

if(is_user_alive(id))
{
new iwpn, wclip, wammo, sprite[192], icon_color[3] = {160, 160, 160}

iwpn = get_user_weapon(id, wclip, wammo)
switch(iwpn) {
case CSW_KILL_1: sprite = "kill_1"
case CSW_KILL_2: sprite = "kill_2"
case CSW_KILL_3: sprite = "kill_3"
case CSW_KILL_4: sprite = "kill_4"
case CSW_KILL_5: sprite = "kill_5"
case CSW_KILL_6: sprite = "kill_6"
case CSW_KILL_7: sprite = "kill_7"
case CSW_KILL_8: sprite = "kill_8"
case 0: sprite = ""
default: sprite = ""
}
if (is_user_ok(id)) {
if (equali(sprite, "")) {
remove_weapon_icon(id)
} else {
message_begin(MSG_ONE,iconstatus,icon_origin, id)
write_byte(1) // status (0=hide, 1=show, 2=flash)
write_string(sprite) // sprite name

write_byte(icon_color[0]) // red
write_byte(icon_color[1]) // green
write_byte(icon_color[2]) // blue
message_end()
}
user_icons[id] = sprite
} else {
remove_weapon_icon(id)
}
}
return PLUGIN_CONTINUE
}
rainbow14 is offline
Reply


Thread Tools
Display Modes

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 07:27.


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