Name on reconnect problems...
Alright, I'm working on a system that when somebody joins it adds them to a playerlist I'm drawing with set/show_hudmessage. When they join, etc. it works fine and when they leave it removes their name from the list. But if they are like, reconnecting or something to the server, they don't appear back on the list.
Any ideas? |
I am using the replace and format funtion to find their names on the list once they join a different team, and it removes them from the team they were on and adds them to the other team. Not sure if that's a problem though, and it's keeping it from drawing their name the next time they get on.
|
client_connect is called when they first join the server. client_disconnect is called when they leave the server. client_putinserver is called when the game registers them as in the game and puts their name on the spectator part of the scoreboard. If a user types "retry" in console, I do not believe that connect or disconnect will be called, only putinserver.
|
I'm calling everything from putinserver, but I still have the problem...
|
can we see the code?
|
Yeah, here is where I call the function to add the person to the "Not Ready!" list...
Code:
public client_putinserver(id) Code:
public playerlistNotReady(id)Code:
public playerListRemove(id)I call that whenever they leave the server, so in... Code:
public client_disconnect(id) |
Any ideas?
|
Code:
|
Alright, that all works, thanks :)
Now one more thing, when a player connects, and they change their names, it shows their new name but their old one is just stuck there under "Not Ready" but the playerlist is refreshing...I think I have an idea how to do it, but I would like some input to see if my "theory" is right :) |
Well, nevermind. I know how to do it.
But, I'm also working on something so names cannot be changed, but whenever I execute this on a person... Code:
public client_infochanged(id){ |
| All times are GMT -4. The time now is 19:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.