public OnPlayerDisconnect(playerid, reason)
{
new Nick[24 + 1]; // Myslím..
new INI:File = INI_Open(Open);
GetPlayerName(playerid, Nick, sizeof(Nick));
format(Open, sizeof(Open), "%s.ini", Nick);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
INI_WriteFloat(File, "PosX" X);
INI_WriteFloat(File, "PosY" Y);
INI_WriteFloat(File, "PosZ" Z);
return 1;
}
public OnPlayerSpawn(playerid)
{
new Float:X, Float:Y, Float:Z;
new Nick[24 + 1]; // Myslím..
new INI:File = INI_Open(Open);
GetPlayerName(playerid, Nick, sizeof(Nick));
format(Open, sizeof(Open), "%s.ini", Nick);
INI_Float(File, "PosX", X);
INI_Float(File, "PosY", Y);
INI_Float(File, "PosZ", Z);
SetPlayerPos(playerid, X, Y, Z);
return 1;
}