Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1. //Spawn protection function
  2. spTimer()
  3. {
  4.     self endon("disconnect");
  5.     self endon("death");
  6.    
  7.     setDvar( "spawn_protection", 1 );
  8.     self thread spNotify();
  9.     wait 7.0;
  10.     setDvar( "spawn_protection", 0 );
  11. }
  12.  
  13. //Spawn protection function
  14. spNotify()
  15. {
  16.     self endon("disconnect");
  17.     self endon("death");
  18.    
  19.     self.spTXT setText("");
  20.     self.spTXT = false;
  21.    
  22.     self.spTXT = self createFontString("objective", 1.25);
  23.     self.spTXT setPoint("TOPRIGHT", "TOPRIGHT", -20, 7);
  24.  
  25.     self.spTXT setText("Spawn protection ^2ON ^70:07");
  26.     wait 1.0;
  27.     self.spTXT setText("Spawn protection ^2ON ^70:06");
  28.     wait 1.0;
  29.     self.spTXT setText("Spawn protection ^2ON ^70:05");
  30.     wait 1.0;
  31.     self.spTXT setText("Spawn protection ^2ON ^70:04");
  32.     wait 1.0;
  33.     self.spTXT setText("Spawn protection ^2ON ^70:03");
  34.     wait 1.0;
  35.     self.spTXT setText("Spawn protection ^2ON ^70:02");
  36.     wait 1.0;
  37.     self.spTXT setText("Spawn protection ^2ON ^70:01");
  38.     wait 1.0;
  39.     self.spTXT setText("Spawn protection ^2ON ^70:00");
  40.     wait 1.0;
  41.    
  42.     self.spTXT setText("Spawn protection ^1OFF");
  43.     wait 1.0;
  44.  
  45.     self.spTXT setText("");
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement