Raised This Month: $ Target: $400
 0% 

Getting player EntID?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 05-24-2007 , 19:54   Getting player EntID?
Reply With Quote #1

I'm trying to find a way to get the clients EntID. It seems it's needed, i'm trying to get an entity to target the player, and the user(s) index doesn't work. But if i use "find_ent_by_classname(-1,"player")" it works. But this only get's the first user in the server.

EDIT:
Nevermind apparently, i used "fm_find_ent" and it worked fine.
__________________
Oh yeah

Last edited by Drak; 05-24-2007 at 20:19.
Drak is offline
Send a message via MSN to Drak
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 05-24-2007 , 20:30   Re: Getting player EntID?
Reply With Quote #2

The player index (the "id" passed into most AMXX forwards) is always that player's entity index as well.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 10:42.


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