Hello... I am sorry for making thread, again.
As the title stated, by the way, I know how the native works. My main problem emerges when finding the entities( specifically players ) index. So, I tried.
PHP Code:
public Random( id )
{
new Float:CurOrigin[ 3 ], EnemyEnt = -1
pev( id, pev_origin, CurOrigin )
EnemyEnt = find_ent_in_sphere( EnemyEnt, CurOrigin, 300.0 )
while( EnemyEnt != 0 )
{
// do stuff...
}
}
AFAIK, this will only retrieve a single entity( player ) index, right? Do I need to use 'for' loop instead of 'while' to catch the indexes using get_maxplayers( )? If so, then how?
My main goal is to retrieve all entities( players ) index inside the radius...
Thank you for your time...