Guest User

Untitled

a guest
Jul 6th, 2017
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. ##################### DYNAMIC MARKET SCRIPT #####################
  4. ### AUTHOR: RYAN TT. ###
  5. ### STEAM: www.steamcommunity.com/id/ryanthett ###
  6. ### ###
  7. ### DISCLAIMER: THIS SCRIPT CAN BE USED ON EVERY SERVER ONLY ###
  8. ### WITH THIS HEADER / NOTIFICATION ###
  9. #################################################################
  10. */
  11.  
  12. if (isNil "DYNMARKET_prices") then {[[getPlayerUID player],"TON_fnc_playerLogged",false,false] spawn life_fnc_MP;hint "Getting current prices from the server..";sleep 1;};
  13.  
  14. disableSerialization;
  15. _dialog = findDisplay 7100;
  16. _listbox = _dialog displayCtrl 7055;
  17. _blacklist =
  18. [
  19. "apple"
  20. ];
  21.  
  22. {
  23. _itemName = _x select 0;
  24. _itemDisplayName = M_CONFIG(getText,"VirtualItems",_itemName,"displayname");
  25. _itemDisplayIcon = M_CONFIG(getText,"VirtualItems",_itemName,"icon");
  26. _itemDisplayName = localize _itemDisplayName;
  27. if !(_x select 0 in _blacklist) then {
  28. _listbox lbAdd format ["%1",_itemDisplayName];
  29. _listbox lbSetData [(lbSize _listbox)-1,_x select 0];
  30. _listbox lbSetPicture [(lbSize _listbox )-1,_itemDisplayIcon];
  31. };
  32. } forEach DYNMARKET_prices;
Add Comment
Please, Sign In to add comment