Player Spawning Help
#1

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
Reply
#2

When Player leaves the server, get player position and insert it in the player data.
Reply
#3

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]);
Reply
#4

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
Reply
#5

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.
Reply
#6

do you know any other gamemode like this and the uses MYSQL
Reply
#7

can somebody help me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)