Raised This Month: $ Target: $400
 0% 

Cstrike Invalid id Out Of Range


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-29-2011 , 03:55   Re: Cstrike Invalid id Out Of Range
Reply With Quote #2

cs_get_weapon_id accepts WEAPON entities, not players, use the other method, get_user_weapon().

Also be warned, if someone is killed by a grenade, you can get verry bad results, you should get a pev value from the victim indicating damage type, I don't remember which... pev_dmg.. something.
__________________
Hunter-Digital 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 00:57.


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