Advertisement
Guest User

Untitled

a guest
Sep 13th, 2014
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. PLAYERUID = getPlayerUID player;
  2.  
  3. saveStats={
  4. _varName=profileNamespace getVariable format["%1%2%3%4%5", "k", "ot", "h", "k", "ey"];
  5. _realVarArray=profileNamespace getVariable _varName;
  6. statvars = _realVarArray select 1;
  7.  
  8. level = 25;
  9. experience = 25725;
  10. next_level_required_exp = 28000 - 25725;
  11. perk_count = statvars select 3;
  12. perks = statvars select 4;
  13. cash = 18676;
  14. owned_weapons = statvars select 6;
  15. owned_scopes = statvars select 7;
  16. owned_launchers = statvars select 8;
  17. owned_handguns = statvars select 9;
  18. total_exp = statvars select 10;
  19. money_earned = statvars select 11;
  20. playtime = statvars select 12;
  21. bought_weapon = statvars select 13;
  22. bought_scope = statvars select 14;
  23. bought_launcher = statvars select 15;
  24. bought_handgun = statvars select 16;
  25. skin_selected = statvars select 17;
  26.  
  27. [level,experience,next_level_required_exp,perk_count,perks,+cash,owned_weapons,+owned_scopes,+owned_launchers,+owned_handguns,+total_exp,money_earned,playtime,bought_weapon,bought_scope,bought_launcher,bought_handgun,skin_selected]
  28. };
  29.  
  30.  
  31. _varName = profileNamespace getVariable format["%1%2%3%4%5", "k", "ot", "h", "k", "ey"];
  32. _stats = call saveStats;
  33. profileNamespace setVariable[_varName,[format["%1%2%3%4", "K", "O", "T", "H2"],_stats,"TOBEREPLACED"]];
  34. saveProfileNamespace;
  35. hint "Updated profile!";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement