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


Messages In This Thread
User system question - by sim_sima - 27.04.2011, 14:57
Re: User system question - by sim_sima - 27.04.2011, 15:22
Re: User system question - by xir - 27.04.2011, 15:25
Re: User system question - by sim_sima - 27.04.2011, 15:26
Re: User system question - by xir - 27.04.2011, 15:27
Re: User system question - by sim_sima - 27.04.2011, 15:30
Re: User system question - by sim_sima - 27.04.2011, 15:36

Forum Jump:


Users browsing this thread: 6 Guest(s)