Online Players >=
Hello i want to make my plugin to work when is 5 or more players online and not only the alives what i cant write ?
|
Re: Online Players >=
You can use get_playersnum()
|
Re: Online Players >=
Or.. try that:
PHP Code:
|
Re: Online Players >=
CrazY, they never asked for the number of alive players. Please read thoroughly before posting.
Also, as a side note, there's no reason to use static modifier as you assign values to these variables before using them anyway. |
Re: Online Players >=
And there's definitely no need to loop through all players.
PHP Code:
|
Re: Online Players >=
Quote:
PHP Code:
|
Re: Online Players >=
O.o
Yes sir. :attack: And to get a random player ? |
Re: Online Players >=
PHP Code:
|
Re: Online Players >=
Do not need the -1 Natsheh.
@LifeStone, Use the native that KliPPy said. PHP Code:
|
Re: Online Players >=
Quote:
|
| All times are GMT -4. The time now is 17:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.