
Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: May 24, 2009 05:52 PM
Msg. 4 of 4
The number needed for (list_get (players) #) is not the number on the left of each player in the list that comes up when you use "sv_players". It is the number that you reach when you start at 0 at the bottom of the list and count upwards. Say this was an "sv_players" list:
1 Joe 3 2 Bob 2 3 Sam 1 4 Jon 0
The numbers on the left are the numbers that the list gives you, and the numbers on the right are the numbers you actually use in the command. So, to kill "Sam", you type in:
(unit_kill (unit (list_get (players) 1)))
|