1 best Scriper help me
#1

How do we save spawn after the player quit the game?

I mean when he finishes the tutorial and he goes at the Hospital, How to save his spawn after he quit the game? I mean he will be back in the same spawn (Hospital) as he leaves.

TNX for best Scripter for create that SC xD
Reply
#2

Save his positions to somewhere, then load them when the player logins or how ever you load the player's info, then set the player pos in these positions.
Reply
#3

you can use the include dini for more easy
pawn Код:
public OnPlayerDisconnecte(playerid)
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
dini_FloatSet(thefile, "PosX", X);
dini_FloatSet(thefile, "PosY", Y);
dini_FloatSet(thefile, "PosZ", Z);
return 1;
}

public OnPlayerSpawn(playerid)
{

SetPlayerPos(playerid, dini_Float(thefile, "PosX"), dini_Float(thefile, "PosY"), dini_Float(thefile, "PosZ"));
return 1;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)