Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Cooldown[5];
- script 2 (int switchcheck, int stag, int counttag ) {
- /* int Scooltag[2] = { Cooldown; counttag} */
- if (Cooldown[counttag] > 0 ) {
- Print(s:"wait until the system cooldown ends \n", s:"Time remaining: ", i:Cooldown[counttag], s:"s");
- terminate;
- }
- if (switchcheck == 1) { /* cold */
- ACS_Execute(3, 0, 0, 0, 0);
- ReplaceTextures("PLATE1", "ICEFLTE2");
- Radius_Quake(5,35,0,3500,0);
- Delay(5);
- Sector_SetFriction(stag, 200);
- Cooldown[counttag] = 5;
- while (Cooldown[counttag] >= 1) {
- Delay(35);
- Cooldown[counttag] = Cooldown[counttag] - 1;
- }
- }
- if (switchcheck == 2) { /* hot */
- ACS_Execute(3, 0, 0, 0, 0);
- Radius_Quake(5,35,0,3500,0);
- Delay(5);
- ReplaceTextures("ICEFLTE2", "PLATE1");
- Sector_SetFriction(stag, 100);
- Cooldown[counttag] = 5;
- while (Cooldown[counttag] >= 1) {
- Delay(35);
- Cooldown[counttag] = Cooldown[counttag] - 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement