Guest User

Untitled

a guest
May 13th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1.  
  2. public OnPlayerDisconnect(playerid, reason)
  3. {
  4. new Float:x, Float:y, Float:z;
  5. GetPlayerPos(playerid, x, y, z);
  6. new INI:file = INI_Open(Path(playerid));
  7. INI_SetTag(file,"Stats");
  8. INI_WriteString(file,"pPassword", PlayerInfo[playerid][pPassword]);
  9. INI_WriteString(file,"pEmail", PlayerInfo[playerid][pEmail]);
  10. INI_WriteString(file,"pGender", PlayerInfo[playerid][pGender]);
  11. INI_WriteInt(file,"pAge", PlayerInfo[playerid][pAge]);
  12. INI_WriteString(file,"pOrigin", PlayerInfo[playerid][pOrigin]);
  13. INI_WriteInt(file,"pDeaths", PlayerInfo[playerid][pDeaths]);
  14. INI_WriteInt(file,"pKills", PlayerInfo[playerid][pKills]);
  15. INI_WriteInt(file,"pMoney", GetPlayerMoney(playerid));
  16. INI_WriteInt(file,"pSkin", GetPlayerSkin(playerid));
  17. INI_WriteInt(file,"pBanned", PlayerInfo[playerid][pBanned]);
  18. INI_WriteString(file,"pBanReason", PlayerInfo[playerid][pBanReason]);
  19. INI_WriteString(file,"pBanBy", PlayerInfo[playerid][pBanBy]);
  20. INI_WriteString(file,"pBanExpire", PlayerInfo[playerid][pBanExpire]);
  21. INI_WriteInt(file,"pPlayerLevel", GetPlayerScore(playerid));
  22. INI_WriteFloat(file,"pPosY", y);
  23. INI_WriteFloat(file,"pPosX", x);
  24. INI_WriteFloat(file,"pPosZ", z);
  25. INI_WriteInt(file,"pInterior", GetPlayerInterior(playerid));
  26. INI_WriteInt(file,"pWorld", GetPlayerVirtualWorld(playerid));
  27. INI_Close(file);
  28. return 1;
  29. }
Add Comment
Please, Sign In to add comment