Saving Positons.
#2

pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
    if(//check if the player id logged in here)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid,x,y,z);
        //save your floats using whatever method you're using now
    }
    return 1;
}
public OnPlayerSpawn(playerid)
{
    if(//check if the player has logged in and this is their first time spawning)
    {
        new Float:x, Float:y, Float:z;
        //load the data here
        SetPlayerPos(playerid,x,y,z);
    }
    return 1;
}
Reply


Messages In This Thread
Saving Positons. - by Tee - 16.11.2010, 23:00
Re: Saving Positons. - by cessil - 17.11.2010, 00:24

Forum Jump:


Users browsing this thread: 1 Guest(s)