User system question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: User system question (
/showthread.php?tid=251538)
User system question -
sim_sima - 27.04.2011
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.
Re: User system question -
sim_sima - 27.04.2011
Nobody knows?
Re: User system question -
xir - 27.04.2011
Use OnPlayerRequestSpawn Callback instead of OnPlayerSpawn
Re: User system question -
sim_sima - 27.04.2011
Quote:
Originally Posted by xir
Use OnPlayerRequestSpawn Callback instead of OnPlayerSpawn
|
Doesnt work either
Re: User system question -
xir - 27.04.2011
What doesn't work? It doesn't give the weapon or what?
Re: User system question -
sim_sima - 27.04.2011
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
Re: User system question -
sim_sima - 27.04.2011
No other ideas?