Guest User

Untitled

a guest
Oct 12th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. SAVE USER
  2. stock SaveUser(playerid){
  3. new INI:File = INI_Open(UserPath(playerid, USERPATH));
  4. INI_WriteInt(File, "Lozinka", PlayerInfo[playerid][Lozinka]);
  5. INI_WriteInt(File, "Novac", PlayerInfo[playerid][Novac]);
  6. INI_WriteInt(File, "Level", PlayerInfo[playerid][Level]);
  7. INI_WriteInt(File, "Respekti", PlayerInfo[playerid][Respekti]);
  8. INI_WriteInt(File, "Banka", PlayerInfo[playerid][Banka]);
  9. INI_WriteInt(File, "Zlato", PlayerInfo[playerid][Zlato]);
  10. INI_WriteInt(File, "Org", PlayerInfo[playerid][Org]);
  11. INI_WriteInt(File, "Lider", PlayerInfo[playerid][Lider]);
  12. INI_WriteInt(File, "WL", PlayerInfo[playerid][WL]);
  13. INI_WriteInt(File, "Mute", PlayerInfo[playerid][Mute]);
  14. INI_WriteInt(File, "Jail", PlayerInfo[playerid][Jail]);
  15. INI_WriteInt(File, "TelefonBroj", PlayerInfo[playerid][TelefonBroj]);
  16. INI_WriteInt(File, "TelefonKredit", PlayerInfo[playerid][TelefonKredit]);
  17. INI_WriteInt(File, "Warn", PlayerInfo[playerid][Warn]);
  18. INI_WriteInt(File, "Skin", PlayerInfo[playerid][Skin]);
  19. INI_WriteInt(File, "Vozilo1", PlayerInfo[playerid][Vozilo1]);
  20. INI_WriteInt(File, "Vozilo2", PlayerInfo[playerid][Vozilo2]);
  21. INI_WriteInt(File, "Vozilo3", PlayerInfo[playerid][Vozilo3]);
  22. INI_WriteInt(File, "Kuca", PlayerInfo[playerid][Kuca]);
  23. INI_WriteInt(File, "Stan", PlayerInfo[playerid][Stan]);
  24. INI_WriteInt(File, "Garaza", PlayerInfo[playerid][Garaza]);
  25. INI_WriteInt(File, "VIP", PlayerInfo[playerid][VIP]);
  26. INI_WriteString(File, "Rank", PlayerInfo[playerid][Rank]);
  27. INI_WriteInt(File, "Admin", PlayerInfo[playerid][Admin]);
  28. INI_WriteInt(File, "Supporter", PlayerInfo[playerid][Supporter]);
  29. INI_WriteInt(File, "StaffCode", PlayerInfo[playerid][StaffCode]);
  30. INI_WriteInt(File, "AutoDozvola", PlayerInfo[playerid][AutoDozvola]);
  31. INI_WriteInt(File, "MotorDozvola", PlayerInfo[playerid][MotorDozvola]);
  32. INI_WriteInt(File, "KamionKombiDozvola", PlayerInfo[playerid][KamionKombiDozvola]);
  33. INI_WriteInt(File, "LetelicaDozvola", PlayerInfo[playerid][LetelicaDozvola]);
  34. INI_WriteInt(File, "BrodDozvola", PlayerInfo[playerid][BrodDozvola]);
  35. INI_WriteInt(File, "Promoter", PlayerInfo[playerid][Promoter]);
  36. INI_WriteInt(File, "OrgRank", PlayerInfo[playerid][OrgRank]);
  37. INI_WriteString(File, "Email", PlayerInfo[playerid][Email]);
  38. INI_WriteInt(File, "Godine", PlayerInfo[playerid][Godine]);
  39. INI_WriteString(File, "Pol", PlayerInfo[playerid][Pol]);
  40. INI_Close(File);
  41. return 1;
  42. }
  43.  
  44. ON PLAYER DISCONNECT
  45.  
  46. public OnPlayerDisconnect(playerid, reason){
  47.  
  48. SaveUser(playerid);
  49. // ---------------------------------------------------------------
  50. return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment