Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739
Crazy Tronners Wiki - Running a Server

Running a Server

From Tronwiki
Jump to: navigation, search
(Alternating Death Pulses)
Line 81: Line 81:
 
         $keywords = preg_split("/ /", $line);
 
         $keywords = preg_split("/ /", $line);
 
         $game_time=$keywords[1];
 
         $game_time=$keywords[1];
    if ( $game_time == 0 ) {
+
        if ( $game_time == 0 ){
        for ( $i=0; $i<=500; $i+=50 )
+
            for ( $i=0; $i<=500; $i+=50 )
        for ( $j=0; $j<=500; $j+=50 )
+
                for ( $j=0; $j<=500; $j+=50 )
        print("spawn_zone death $i $j 1 0\n");
+
                    print("spawn_zone death $i $j 1 0\n");
    } else if ( $game_time % 14 == 0 ) {
+
        } else if ( $game_time % 14 == 0 ){
        for ( $i=0; $i<=500; $i+=100 )
+
            for ( $i=0; $i<=500; $i+=100 ){
            for ( $j=0; $j<=500; $j+=100 )
+
                for ( $j=0; $j<=500; $j+=100 ){
                print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
+
                    print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
    } else if ( $game_time % 7 == 0 ) {
+
                    usleep(20000);
        for ( $i=50; $i<=450; $i+=100 )
+
                }
            for ( $j=50; $j<=450; $j+=100 )
+
            }
                print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
+
        } else if ( $game_time % 7 == 0 ) {
 +
            for ( $i=50; $i<=450; $i+=100 ){
 +
                for ( $j=50; $j<=450; $j+=100 ){
 +
                    print("spawn_zone death $i $j " . $game_time/2 . " -" . $game_time/5 . "\n");
 +
                    usleep(20000);
 +
                }
 
             }
 
             }
 
         }
 
         }
 
     }
 
     }
?></nowiki>
+
}
 +
?>
 +
</nowiki>

Revision as of 12:41, 3 October 2007

Personal tools