Do something depends of player count
Well, i have a simple question. I can't test right now, for that reason i am posting here.
Code:
I want to know if this method is correct or i have to add something to fix bugs, or something like that. |
Re: Do something depends of player count
I think (not sure) that client_disconnect it's not called if player disconnects before putinserver.
|
Re: Do something depends of player count
Ye for that reason i ask that, becouse i am not really sure and i think will have some bugs.
The only thing that i think i can use appart of that or with that, is SVC_DISCONNECT message. |
Re: Do something depends of player count
get_players()
|
Re: Do something depends of player count
OHHHH, i am really stupid, i used that for an old plugin and now didn't think about it... thanks. Also i think that get_playersnum() is best in this case.
|
Re: Do something depends of player count
Quote:
|
Re: Do something depends of player count
Sry didn't understand at all what you said (cuz my english is not really good).. you said to me, to forgot about get_playersnum() or get_players()?
|
Re: Do something depends of player count
Both are fine, if you don't need the list of players, use get_playersnum(), it also provide an extra argument so you can count connecting players.
|
Re: Do something depends of player count
Quote:
|
Re: Do something depends of player count
Ah ok, Thanks =p
|
| All times are GMT -4. The time now is 21:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.