get_playersnum(1) without bots help.
How can i do like get_playersnum(1) >= 2 and it only returns the numbers of players that is not bots?
Thanks -zacky |
Re: get_playersnum(1) without bots help.
Quote:
PHP Code:
|
Re: get_playersnum(1) without bots help.
Use get_players()
There is flag to skip bots, so you will know num of real players |
Re: get_playersnum(1) without bots help.
Can you show an example?
I want to detect if there is like 2 people connected or three which is not bots. Let me explain what i'm going to do. I am going to do that if there is 1 player connected (not bot) i am going to do something in there, if there is 2 players connected (not bots) do something else. |
Re: get_playersnum(1) without bots help.
http://www.amxmodx.org/funcwiki.php?go=func&id=174
PHP Code:
|
Re: get_playersnum(1) without bots help.
Thanks xPaw
|
Re: get_playersnum(1) without bots help.
Quote:
Quote:
|
Re: get_playersnum(1) without bots help.
The comment is not really true :mrgreen: the flags work fine
|
Re: get_playersnum(1) without bots help.
Quote:
Even if it works it doesn't mean that you should use it. ;) |
Re: get_playersnum(1) without bots help.
Quote:
get_players() works for most flags, but a few flags such as team can be a bit buggy. That is why they say it shouldn't be used. |
| All times are GMT -4. The time now is 15:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.