Thread: getplayerhandle
View Single Post
Author Message
stas3
Junior Member
Join Date: Jul 2011
Location: ukraine
Old 07-26-2011 , 14:15   getplayerhandle
Reply With Quote #1

1.

PHP Code:
"1"
{
   
"classname"   "player"
   "handle"   "1572865"

How to get "handle" ? In Eventscripts it's es.getplayerhandle(<userid>)

The only thing I figured out you can get an index of weapon, which keeps the player, then you can learn "handle" to the parameter m_hOwnerEntity. Is there an easier option? I can not find commands.

2. FindEntityByClassname loops through all the indices from 0 to GetEntityCount() ?

--
SourceMod Good, but not enough information and tips on using commands
__________________
My English is bad

Last edited by stas3; 07-26-2011 at 14:19.
stas3 is offline