Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "zcommon.acs"
- script 1 OPEN {
- int GravValue = random(600,1000);
- Delay(10);
- HudMessageBold(s:"Current gravity is: ",
- d:GravValue;
- hudmSG_PLAIN, 1, cr_cream, 0.95, 0.95, 0);
- SetGravity(500.0);
- }
- int timeleft = 15;
- script 2 OPEN {
- if (timeleft == 0) {
- int GravValue = random(600,1000);
- Delay(3);
- Sector_SetGravity(1, (800/GravValue), 0);
- HudMessageBold(s:"Time left",
- d:timeleft;
- hudmSG_PLAIN, 2, cr_red, 0.05, 0.05, 0);
- HudMessageBold(s:"Current gravity is: ",
- d:GravValue;
- hudmSG_PLAIN, 1, cr_cream, 0.95, 0.95, 0);
- SetGravity(GravValue);
- Delay(35);
- timeleft = 15;
- }
- while (timeleft > 0) {
- HudMessageBold(s:"Time left",
- d:timeleft;
- hudmSG_PLAIN, 2, cr_red, 0.05, 0.05, 0);
- timeleft--;
- Delay(35);
- }
- restart;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement