Raised This Month: $ Target: $400
 0% 

[HELP] if server is empty


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2009 , 12:32   Re: [HELP] if server is empty
Reply With Quote #1

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 ;) )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-19-2009 , 12:34   Re: [HELP] if server is empty
Reply With Quote #2

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2009 , 16:22   Re: [HELP] if server is empty
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
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.
But the message is not fired everytime, i'm sure you know the bug when a player is connecting and he already appears in scores as a T or a CT.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-19-2009 , 18:30   Re: [HELP] if server is empty
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
But the message is not fired everytime, i'm sure you know the bug when a player is connecting and he already appears in scores as a T or a CT.
But his team info is still set to UNASSIGNED. That's why when the team parameter is UNASSIGNED, the player either connected or disconnected.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode