Crash[rep]
#1

what to i do so if i get crash and i get back to the same crash location..understand??please help giving rep!
Reply
#2

or if i relog i want the location from where i reloged.
Reply
#3

Please explain more, I can't seem to understand what you mean.
Reply
#4

pawn Code:
new died[MAX_PLAYERS];

public OnPlayerDeath(playerid,killerid,reason)
{
    died[playerid] =1;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(died[playerid] == 1)
    {
        SetPlayerPos(playerid,...);//hospital coords...
        died[playerid]=0;
    }
    return 1;
}
This will spawn you at hospital.

Save the players X,Y,Z when he disconnects and Load when he logs him. Spawn him with those coords when he spawns
Reply
#5

Save the players last known position to their player file and load it once they have spawned.

Edit: solution posted above my post.
Reply
#6

Read this https://sampforum.blast.hk/showthread.php?tid=48439 it may help you
Reply
#7

well u dont understand..so if i relog i want him to spawn from where he loged..get it?
Reply
#8

make the coords save when u disconnect and when u log then set players pos there
Reply
#9

There's a tutorial on how to do this, use https://sampforum.blast.hk/showthread.php?tid=276694 hope it helps
Reply
#10

yep..i tried and no work..as u can see the comments from tutorial..not a good tutorial..can u show me what to do??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)