Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. stock Register(playerid, key[])
  2. {
  3. new Accounts[256];
  4. new Name[MAX_PLAYER_NAME];
  5. GetPlayerName(playerid, Name, sizeof(Name));
  6. format(Accounts, sizeof(Accounts), "/Accounts/%s.txt", Name);
  7. dini_Create(Accounts);
  8. dini_Set(Accounts, "Slaptazodis", key);
  9. dini_IntSet(Accounts, "XP", PlayerInfo[playerid][XP]);
  10. dini_IntSet(Accounts, "Skinas", PlayerInfo[playerid][Skinas]);
  11. dini_IntSet(Accounts, "Pinigai", PlayerInfo[playerid][Pinigai]);
  12. dini_IntSet(Accounts, "Administratorius", PlayerInfo[playerid][Administratorius]);
  13. dini_IntSet(Accounts, "AdminLevel", PlayerInfo[playerid][AdminLevel]);
  14. dini_IntSet(Accounts, "Gyvybe", PlayerInfo[playerid][Health]);
  15. dini_IntSet(Accounts, "Sarvai", PlayerInfo[playerid][Armour]);
  16. dini_IntSet(Accounts, "PozicijaX", PlayerInfo[playerid][pX]);
  17. dini_IntSet(Accounts, "PozicijaY", PlayerInfo[playerid][pY]);
  18. dini_IntSet(Accounts, "PozicijaZ", PlayerInfo[playerid][pZ]);
  19. dini_IntSet(Accounts, "Ginklai", PlayerInfo[playerid][Ginklai]);
  20. dini_IntSet(Accounts, "VIP", PlayerInfo[playerid][VIP]);
  21. dini_IntSet(Accounts, "VIPLevel", PlayerInfo[playerid][VIPLevel]);
  22. }
  23. //I changed MAX_PLAYERS to playerid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement