Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script "ToggleShopSystem" (void) {
- SetHudSize (SCREEN_WIDTH, SCREEN_HEIGHT, 0);
- if (ShopGUIOpen[PlayerNumber ()] == 0) {
- ShopGUIOpen[PlayerNumber ()] = 1;
- mouseX = SCREEN_WIDTH/2;
- mouseY = SCREEN_HEIGHT/2;
- SetFont ("Graphics/ShopSystem/Background.png");
- HudMessage (s:"A"; HUDMSG_PLAIN, SHOPBACKGROUNDID, CR_UNTRANSLATED, 0.0, 0.0, 0.0);
- ACS_NamedExecute ("ShopSystemz", 0);
- Delay (1);
- SetPlayerProperty (0, 1, PROP_TOTALLYFROZEN);
- terminate;
- }
- else if (ShopGUIOpen[PlayerNumber ()] == 1) {
- ShopGUIOpen[PlayerNumber ()] = 0;
- mouseX = SCREEN_WIDTH/2;
- mouseY = SCREEN_HEIGHT/2;
- SetFont ("Graphics/ShopSystem/Background.png");
- HudMessage (s:"A";
- HUDMSG_FADEOUT, SHOPBACKGROUNDID, CR_UNTRANSLATED, 0.0, 0.0, 0.0001, 0.3);
- ACS_NamedTerminate ("ShopSystemz", 0);
- Delay (1);
- SetPlayerProperty (0, 0, PROP_TOTALLYFROZEN);
- terminate;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement