Help counting of players living
Best to all.
What happens is that I have a problem with the controls of players PHP Code:
PHP Code:
PHP Code:
thanks |
Re: Help counting of players living
Try get_players:
PHP Code:
PHP Code:
|
Re: Help counting of players living
Your GetAlive function looks fine. The only thing is that cs_get_user_team(i) == CS_TEAM_T will ensure that only alive terrorists will be counted.
Quote:
|
Re: Help counting of players living
Thanks Smiley but I use iNum variable globally?
I just want to restrict certain features and menus depending on the players who are alive. |
Re: Help counting of players living
You just need to change
Code:
to Code:
Also you don't need to check for connected if you're checking for alive if I'm not wrong. |
Re: Help counting of players living
So you want something to be done for alive players, and other thing to be done for dead players?
If so, the best way you can use is get_players and flag "a" for alive players, and flag "b" for dead players. Loop trough the number of players got, and do the thing. |
Re: Help counting of players living
Thanks I understand.
|
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.