Raised This Month: $ Target: $400
 0% 

[CSX] Nade kill returns as knife kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-16-2006 , 22:02   [CSX] Nade kill returns as knife kill
Reply With Quote #1

Code:
register_event("DeathMsg", "event_death", "a", "1>0") new killer = read_data(1) new ammo, clip, wpnindex = get_user_weapon(killer, clip, ammo) new name[32] get_user_name(killer, name, 31) if(wpnindex == CSW_HEGRENADE) {      client_print(victim, print_chat, "%s killed you with %s", name, global_weapon_array) }

I normally use client_death but in this case I decided to use the register_event for deathmsg.

Whenever a player kills another with a grenade...the weaponid returned is knife?

I'm not sure if this is normal.

All other weapon id's stored in the global array is returned correctly except for the nade index.

Last edited by organizedKaoS; 11-16-2006 at 22:05.
organizedKaoS is offline
 


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 06:57.


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