03.05.2011, 14:39
Hello guys.
I have made a login/register system for my server.
I have an issue with weapon and position loading.
It works fine, almost... When the player disconnects, his weapons and position gets saved.
I dont know whats the best way to load it. It doesnt work if i try to load it in "OnDialogResponse" for the login dialog, and it doesnt work int the "OnPlayerRequestSpawn" callback. Only place where it works is in the "OnPlayerSpawn" callback. But the problem here is, when the player dies, he spawns at the saved position from where he disconnected, and gets the weapons from last time he disconnected.
Hope someone can help me. Thank you.
I have made a login/register system for my server.
I have an issue with weapon and position loading.
It works fine, almost... When the player disconnects, his weapons and position gets saved.
I dont know whats the best way to load it. It doesnt work if i try to load it in "OnDialogResponse" for the login dialog, and it doesnt work int the "OnPlayerRequestSpawn" callback. Only place where it works is in the "OnPlayerSpawn" callback. But the problem here is, when the player dies, he spawns at the saved position from where he disconnected, and gets the weapons from last time he disconnected.
Hope someone can help me. Thank you.