DjoLe11

Untitled

Jul 28th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. // ucitavanje igraca
  2. forward LoadUser_data(playerid, name[], value[]);
  3. public LoadUser_data(playerid, name[], value[])
  4. {
  5. INI_Int("Sifra",PlayerInfo[playerid][pSifra]);
  6. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  7. INI_Int("Novac",PlayerInfo[playerid][pNovac]);
  8. INI_Int("Ubistva",PlayerInfo[playerid][pUbistva]);
  9. INI_Int("Smrti",PlayerInfo[playerid][pSmrti]);
  10. INI_Int("Skin",PlayerInfo[playerid][pSkin]);
  11. INI_Int("Skor",PlayerInfo[playerid][pSkor]);
  12. INI_Int("Mutiran",PlayerInfo[playerid][pMutiran]);
  13. INI_Int("MutiranVreme",PlayerInfo[playerid][pMutiranVreme]);
  14. INI_Int("Banned", PlayerInfo[playerid][pBanned]);
  15. return 1;
  16. }
  17. stock SavePlayer(playerid)
  18. {
  19. new INI:File = INI_Open(UserPath(playerid));
  20. INI_SetTag(File,"data");
  21. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  22. INI_WriteInt(File,"Novac",PlayerInfo[playerid][pNovac]);
  23. INI_WriteInt(File,"Ubistva",PlayerInfo[playerid][pUbistva]);
  24. INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
  25. INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
  26. INI_WriteInt(File,"Skor",PlayerInfo[playerid][pSkor]);
  27. INI_WriteInt(File,"Mutiran",PlayerInfo[playerid][pMutiran]);
  28. INI_WriteInt(File,"MutiranVreme",PlayerInfo[playerid][pMutiranVreme]);
  29. INI_Close(File);
  30. return 1;
  31. }
  32. 109.92.189.10
Advertisement
Add Comment
Please, Sign In to add comment