Player Spawning Help - 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)
+--- Thread: Player Spawning Help (
/showthread.php?tid=444851)
Player Spawning Help -
yancarlos4500 - 18.06.2013
The problems is that when the player disconected from the server and then i reconnect it shows me 3 places where i can spawn.
I wanted that the server saves the player cordinates and when reconnect spawn in those cordinates.
the server uses mysql
Re: Player Spawning Help -
Goldilox - 18.06.2013
When Player leaves the server, get player position and insert it in the player data.
Re: Player Spawning Help -
Necip - 18.06.2013
First of all, you must save the player's position when he quits.Do it where you create your player's file function and add like this:
pawn Код:
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Float:pPos_r,
Then when he connects use
pawn Код:
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
Re: Player Spawning Help -
yancarlos4500 - 18.06.2013
I understand what you mean But i don't really work a lot with pawn
look take a look at the script and the sql and if you can do it for me
Gamemode
http://www.mediafire.com/download/mo...2/Roleplay.rar
SQL
http://www.mediafire.com/view/6igd15m8177y110/samp.sql
Re: Player Spawning Help -
Necip - 18.06.2013
That's a leaked gamemode which needs to be edited a lot.It already has the things I wrote to you but it doesn't make you spawn on your position, it needs lots of editing, sorry that can't help you.
Re: Player Spawning Help -
yancarlos4500 - 18.06.2013
do you know any other gamemode like this and the uses MYSQL
Re: Player Spawning Help -
yancarlos4500 - 19.06.2013
can somebody help me please