get_players in client_disconnect
So I'm trying to reset the server password when everyone lefts the server. The problem is it doesn't work for some reason.
PHP Code:
Edit: Is the player still "in server" when get_players() gets called? I know you cannot execute anything on him though. |
Re: get_players in client_disconnect
Is client_disconnect, disconnecting player is still count as ingame, knowing that, consider (iNum-1).
You can use get_playersnum instead, still you have to consider result-1. Else, yuo don't need to make _e_AllPlayersLeft function public, you don't even need a function. |
Re: get_players in client_disconnect
Awesome, I didn't even know get_playersnum exists.
Much appreciated. Edit: It's public since I'm using it somewhere else as well w/ set_task(). Edit2: Looks like I'll still have to use get_players since I want to not count HLTV and bots and get_playersnum seems not to support pass flags. |
| All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.