How to spawn a player at a saved location?
#3

okay
pawn Код:
public OnPlayerDisconnect(playerid)
{
    new Float:x, Float:y, Float:z;
        new pname[MAX_PLAYER_NAME];
        new string[128];
        new file[60];
    GetPlayerPos(playerid, x, y, z);
        GetPlayerName(playerid,pname,sizeof(pname));
        format(file,sizeof(file),"/Users/%s.ini",pname);
        new INI:File = INI_Open(file);
        INI_WriteFloat(File,"posX", x);
        INI_WriteFloat(File,"posY", y);
        INI_WriteFloat(File,"posZ", z);
        INI_Close(File);
        return 1;
}
Reply


Messages In This Thread
How to spawn a player at a saved location? - by Vasu99 - 26.01.2014, 09:51
Re : How to spawn a player at a saved location? - by MCZOFT - 26.01.2014, 10:07
Re: How to spawn a player at a saved location? - by Vanter - 26.01.2014, 10:12
Re: How to spawn a player at a saved location? - by Vasu99 - 26.01.2014, 18:33
Re: How to spawn a player at a saved location? - by Vanter - 26.01.2014, 18:54
Re: How to spawn a player at a saved location? - by Vasu99 - 27.01.2014, 16:49
Re: How to spawn a player at a saved location? - by Vasu99 - 27.01.2014, 20:33
Re: How to spawn a player at a saved location? - by Vasu99 - 28.01.2014, 19:55
Re: How to spawn a player at a saved location? - by Manyula - 28.01.2014, 20:14
Re: How to spawn a player at a saved location? - by Vasu99 - 30.01.2014, 15:49

Forum Jump:


Users browsing this thread: 2 Guest(s)