[HELP] if server is empty
hi,
i write small plugin but im not good that :( if server is empty , change server mp_timelimit to 0. if any user is connect or on game mp_timelimit to 40. after if there no player on game change mp_timelimit to 0. i write thats but , if player connect then , disconnect dont change mp_timelimit to 0 PHP Code:
|
Re: [HELP] if server is empty
PHP Code:
|
Re: [HELP] if server is empty
Code:
|
Re: [HELP] if server is empty
client_disconnect can be triggered before the player has enter the server, you should use get_playersnum (<- seems to return 1 when last player has left, just check it twice ;) )
|
Re: [HELP] if server is empty
When I wrote "Team Join Management", I found out a few things about TeamInfo event.
Such as, when the "team" parameter is "UNASSIGNED", the player has left. |
Re: [HELP] if server is empty
Quote:
|
Re: [HELP] if server is empty
Just some little notes:
@xPaw: LoL, I like the fact that you used g_iPlayers when it's not even a global variable... :lol: @xlenonz: I think you should use Exolent's way(no offense to xPaw), as xPaw's way is very CPU demanding. |
Re: [HELP] if server is empty
Quote:
|
Re: [HELP] if server is empty
Quote:
|
Re: [HELP] if server is empty
Quote:
|
| All times are GMT -4. The time now is 01:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.