Raised This Month: $51 Target: $400
 12% 

[CSGO] Entity index of a edict_t


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KrutzTim
New Member
Join Date: Jul 2016
Old 07-01-2016 , 20:55   [CSGO] Entity index of a edict_t
Reply With Quote #1

What function do you use to get a index of a edict_t (player edict)? I need it for filter and SendUserMessage

I have found this on forum
engine->IndexOfEdict(pEntity)
But IVEngineServer does not have that member "IndexOfEdict".


danke schön
KrutzTim is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-01-2016 , 23:44   Re: [CSGO] Entity index of a edict_t
Reply With Quote #2

For a SourceMod plugin, you can use
Code:
gamehelpers->IndexOfEdict(pEntity)
although this requires you to uncomment #define SMEXT_ENABLE_GAMEHELPERS in smsdk_config.h

For an MM:S plugin, you need to see the Porting to Left 4 Dead page, which also applies to games newer than L4D such as L4D2 and CS:GO.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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:55.


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