19.06.2011, 14:32
pawn Код:
public OnPlayerDisconnect(playerid)
{
new Float:lastx, Float:lasty, Float:lastz, file[128], name[MAX_PLAYER_NAME];
GetPlayerPos(playerid, lastx, lasty, lastz);
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), file location thingies, name);
dini_Create(file);
dini_IntSet(file, "Last X", lastx);
dini_IntSet(file, "Last Y", lasty);
dini_IntSet(file, "Last Z", lastz);
return 1;
}