Advertisement
bauti777

Untitled

Feb 9th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 1.00 KB | None | 0 0
  1. #include "zcommon.acs"
  2.  
  3. script 1 OPEN {
  4.     int GravValue = random(600,1000);
  5.     Delay(10);
  6.     HudMessageBold(s:"Current gravity is: ",
  7.                     d:GravValue;
  8.                 hudmSG_PLAIN, 1, cr_cream, 0.95, 0.95, 0);
  9.     SetGravity(500.0);
  10. }
  11.  
  12. int timeleft = 15;
  13. script 2 OPEN {
  14.     if (timeleft == 0) {
  15.         int GravValue = random(600,1000);
  16.         Delay(3);
  17.         Sector_SetGravity(1, (800/GravValue), 0);
  18.         HudMessageBold(s:"Time left",
  19.                 d:timeleft;
  20.                 hudmSG_PLAIN, 2, cr_red, 0.05, 0.05, 0);
  21.         HudMessageBold(s:"Current gravity is: ",
  22.                     d:GravValue;
  23.                 hudmSG_PLAIN, 1, cr_cream, 0.95, 0.95, 0);
  24.         SetGravity(GravValue);
  25.         Delay(35);
  26.         timeleft = 15;
  27.     }
  28.     while (timeleft > 0) {
  29.         HudMessageBold(s:"Time left",
  30.                         d:timeleft;
  31.                 hudmSG_PLAIN, 2, cr_red, 0.05, 0.05, 0);
  32.                 timeleft--;
  33.         Delay(35);
  34.     }
  35.     restart;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement