User system question
#1

Hi guys.
I am makeing a GM with a login/register system using Dini.
It saves a lot of things, but i have problems with loading 2 of them.
Those 2 are weapons and position.
When the player disconnects, his position and weapons are successfully saved, but when he logs in again, i want to set his position to the saved one, and give him the saved weapons.
If i do it on "OnPlayerSpawn" callback, it spawns him at the saved position, and gives him the saved weapons and bullets.
I want to spawn him at the saved position once after he logged in, and give him the saved weapons and bullets.
Also, when the player dies, he loses his weapons, i dont want that to happend.

Hope you can help me. Thanks.
Reply
#2

Nobody knows?
Reply
#3

Use OnPlayerRequestSpawn Callback instead of OnPlayerSpawn
Reply
#4

Quote:
Originally Posted by xir
Посмотреть сообщение
Use OnPlayerRequestSpawn Callback instead of OnPlayerSpawn
Doesnt work either
Reply
#5

What doesn't work? It doesn't give the weapon or what?
Reply
#6

Quote:
Originally Posted by xir
Посмотреть сообщение
What doesn't work? It doesn't give the weapon or what?
Doesnt give the weapons and doesnt set the position
Reply
#7

No other ideas?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)