Raised This Month: $ Target: $400
 0% 

What's the best way to detect entity type?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-25-2006 , 10:00   Re: What's the best way to detect entity type?
Reply With Quote #17

Then wtf is that?!

Code:
/* Returns entvar data from an entity   Use the pev_* enum to specify which form of data you want returned.  *  * If retrieving strings, you may optionally get a pointer into the global string table. Depending on  * your situation, there are two ways to do this.  * 1: This simply gets the pointer.  *    new ptr = pev(entid, pev_classname)  * 2: The pointer will be stored in ptr AND the actual string is retrieved.  *    new ptr, classname[32]  *    pev(entid, pev_classname, ptr, classname, 31)  */ native pev(_index,_value,{Float,Sql,Result,_}:...);

Anyway it works ok. Did you check the result value for cs_get_weapon_id() ?
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



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 20:19.


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