AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting player EntID? (https://forums.alliedmods.net/showthread.php?t=55564)

Drak 05-24-2007 19:54

Getting player EntID?
 
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.

XxAvalanchexX 05-24-2007 20:30

Re: Getting player EntID?
 
The player index (the "id" passed into most AMXX forwards) is always that player's entity index as well.


All times are GMT -4. The time now is 10:42.

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