AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get HLTV target (https://forums.alliedmods.net/showthread.php?t=222219)

grs4 07-31-2013 07:58

How to get HLTV target
 
I have a big question...

How to take target of HLTV ?

I mean player(s) id..

P.S: I know that HLTV are record all players..


Sorry for my english :P

^SmileY 07-31-2013 12:16

Re: How to get HLTV target
 
Explain better, you need a userid of HLTV in server?

grs4 07-31-2013 15:06

Re: How to get HLTV target
 
.... Is possible get hltv target ? Target - player's id

^SmileY 07-31-2013 16:02

Re: How to get HLTV target
 
Maybe


PHP Code:

new iPlayers[32],iNum,iPlayer;
get_players(iPlayers,iNum,"c");  // get players and skip bots

for(new i;iNum;i++)
{
      
iPlayer iPlayers[i];

      if(
is_user_hltv(iPlayer))
      {
            
/* Your Code Here  */
      
}



grs4 08-01-2013 06:22

Re: How to get HLTV target
 
OK, i have id HLTV , and now how to get the id of player which is watched by HLTV?

^SmileY 08-01-2013 07:29

Re: How to get HLTV target
 
What? You want to get userid out from server and only connected in hltv server?
if yes, its impossible because they users are out from HLDS.


All times are GMT -4. The time now is 15:57.

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