26.01.2014, 10:12
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;
}