27.04.2011, 14:57
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.
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.