Advertisement
Chronos_Ouroboros

ShopSystem stuff

Jun 13th, 2014
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. script "ToggleShopSystem" (void) {
  2. SetHudSize (SCREEN_WIDTH, SCREEN_HEIGHT, 0);
  3.  
  4. if (ShopGUIOpen[PlayerNumber ()] == 0) {
  5. ShopGUIOpen[PlayerNumber ()] = 1;
  6. mouseX = SCREEN_WIDTH/2;
  7. mouseY = SCREEN_HEIGHT/2;
  8. SetFont ("Graphics/ShopSystem/Background.png");
  9. HudMessage (s:"A"; HUDMSG_PLAIN, SHOPBACKGROUNDID, CR_UNTRANSLATED, 0.0, 0.0, 0.0);
  10. ACS_NamedExecute ("ShopSystemz", 0);
  11. Delay (1);
  12. SetPlayerProperty (0, 1, PROP_TOTALLYFROZEN);
  13. terminate;
  14. }
  15. else if (ShopGUIOpen[PlayerNumber ()] == 1) {
  16. ShopGUIOpen[PlayerNumber ()] = 0;
  17. mouseX = SCREEN_WIDTH/2;
  18. mouseY = SCREEN_HEIGHT/2;
  19. SetFont ("Graphics/ShopSystem/Background.png");
  20. HudMessage (s:"A";
  21. HUDMSG_FADEOUT, SHOPBACKGROUNDID, CR_UNTRANSLATED, 0.0, 0.0, 0.0001, 0.3);
  22. ACS_NamedTerminate ("ShopSystemz", 0);
  23. Delay (1);
  24. SetPlayerProperty (0, 0, PROP_TOTALLYFROZEN);
  25. terminate;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement