AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get num of alive cts + ts (https://forums.alliedmods.net/showthread.php?t=51037)

kp_uparrow 02-09-2007 22:18

get num of alive cts + ts
 
i would like to get the number of alive cts
and the number of alive ts

how would you do that with get_players, i know "e" is match team but i dont know what it means or how to do the above

thx

jim_yang 02-09-2007 22:20

Re: get num of alive cts + ts
 
get_players(players, num, "e", "TERRORIST") //"CT"

kp_uparrow 02-09-2007 22:28

Re: get num of alive cts + ts
 
i add a "a" to return alive ones only right?

jim_yang 02-09-2007 22:32

Re: get num of alive cts + ts
 
right, get_players(players, num, "ae", "TERRORIST") // "CT"

XxAvalanchexX 02-10-2007 00:57

Re: get num of alive cts + ts
 
Note that the "e" flag appears to be glitchy. This caused the problem in GunGame where players couldn't score:
Code:
get_players(players,num,"e","TERRORIST");
Sometimes "num" would contain the actual value, while other times it would contain "0".

BAILOPAN even admits that it is glitchy: http://forums.alliedmods.net/showpos...63&postcount=2


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

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