Advertisement
bauti777

Untitled

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