Last Position Save Help.
#3

Under OnPlayerSpawn
pawn Код:
SetPlayerPosition(playerid, dini_Int(file, "PositionX"));
    SetPlayerPosition(playerid, dini_Int(file, "PositionY"));
    SetPlayerPosition(playerid, dini_Int(file, "PositionZ"));
Under OnPlayerDisconnect
pawn Код:
new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    dini_FloatSet(file, "PositionX", x);
    dini_FloatSet(file, "PositionY", y);
    dini_FloatSet(file, "PositionZ", z);
Try something like that.
Reply


Messages In This Thread
Last Position Save Help.[NOT SOLVED] - by ricardo178 - 19.06.2011, 14:27
Re: Last Position Save Help. - by Wesley221 - 19.06.2011, 14:32
Re: Last Position Save Help. - by Stigg - 19.06.2011, 14:37
Re: Last Position Save Help. - by ricardo178 - 19.06.2011, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)