Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDisconnect(playerid, reason)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- new INI:file = INI_Open(Path(playerid));
- INI_SetTag(file,"Stats");
- INI_WriteString(file,"pPassword", PlayerInfo[playerid][pPassword]);
- INI_WriteString(file,"pEmail", PlayerInfo[playerid][pEmail]);
- INI_WriteString(file,"pGender", PlayerInfo[playerid][pGender]);
- INI_WriteInt(file,"pAge", PlayerInfo[playerid][pAge]);
- INI_WriteString(file,"pOrigin", PlayerInfo[playerid][pOrigin]);
- INI_WriteInt(file,"pDeaths", PlayerInfo[playerid][pDeaths]);
- INI_WriteInt(file,"pKills", PlayerInfo[playerid][pKills]);
- INI_WriteInt(file,"pMoney", GetPlayerMoney(playerid));
- INI_WriteInt(file,"pSkin", GetPlayerSkin(playerid));
- INI_WriteInt(file,"pBanned", PlayerInfo[playerid][pBanned]);
- INI_WriteString(file,"pBanReason", PlayerInfo[playerid][pBanReason]);
- INI_WriteString(file,"pBanBy", PlayerInfo[playerid][pBanBy]);
- INI_WriteString(file,"pBanExpire", PlayerInfo[playerid][pBanExpire]);
- INI_WriteInt(file,"pPlayerLevel", GetPlayerScore(playerid));
- INI_WriteFloat(file,"pPosY", y);
- INI_WriteFloat(file,"pPosX", x);
- INI_WriteFloat(file,"pPosZ", z);
- INI_WriteInt(file,"pInterior", GetPlayerInterior(playerid));
- INI_WriteInt(file,"pWorld", GetPlayerVirtualWorld(playerid));
- INI_Close(file);
- return 1;
- }
Add Comment
Please, Sign In to add comment