13.07.2012, 05:52
Код:
public OnPlayerDisconnect(playerid, reason) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerPos(playerid, Float:PlayerInfo[playerid][pX], Float:PlayerInfo[playerid][pY], Float:PlayerInfo[playerid][pZ]); format(file, sizeof(file), SERVER_USER_FILE, name); if(gPlayerLogged[playerid] == 1) { dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]); dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]); dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]); dini_IntSet(file, "X",PlayerInfo[playerid][pX]); dini_IntSet(file, "Y",PlayerInfo[playerid][pY]); dini_IntSet(file, "Z",PlayerInfo[playerid][pZ]); } gPlayerLogged[playerid] = 0; return 1; }
example
X=1152845889
Y=-992376736
Z=1096335360