Advertisement
bauti777

Untitled

Jan 9th, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 1.11 KB | None | 0 0
  1. int Cooldown = 0;
  2. script 2 (int switchcheck, int stag, int counttag ) {
  3. /*  int Scooltag[2] = { Cooldown; counttag}  */
  4.     if (Cooldown/*.counttag*/ > 0 ) {
  5.         Print(s:"wait until the system cooldown ends \n", s:"Time remaining: ", i:Cooldown, s:"s");
  6.         terminate;
  7.     }
  8.    
  9.     if (switchcheck == 1) { /* cold */
  10.         ACS_Execute(3, 0, 0, 0, 0);
  11.         ReplaceTextures("PLATE1", "ICEFLTE2");
  12.         Radius_Quake(5,35,0,3500,0);
  13.         Delay(5);
  14.         Sector_SetFriction(stag, 200);
  15.        
  16.         Cooldown/*.counttag*/ = 5;
  17.         while (Cooldown/*.counttag*/ >= 1) {
  18.             Delay(35);
  19.             Cooldown/*.counttag*/ = Cooldown/*.counttag*/ - 1;
  20.         }
  21.     }
  22.     if (switchcheck == 2) { /* hot */
  23.         ACS_Execute(3, 0, 0, 0, 0);
  24.         Radius_Quake(5,35,0,3500,0);
  25.         Delay(5);
  26.         ReplaceTextures("ICEFLTE2", "PLATE1");
  27.         Sector_SetFriction(stag, 100);
  28.        
  29.         Cooldown/*.counttag*/ = 5;
  30.         while (Cooldown/*.counttag*/ >= 1) {
  31.             Delay(35);
  32.             Cooldown/*.counttag*/ = Cooldown/*.counttag*/ - 1;
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement