Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 20

34.203.x.x forum
40.77.x.x forum
40.77.x.x download
42.156.x.x forum
46.4.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x user
54.36.x.x forum
91.242.x.x forum

Last Seen

mrstipfan Wed 19:48
Gagi2 Mon 16:30
EFiNST0RM Sun 15:39
85filip58 Sun 12:14
brlight Tue 04:18

Newest Members

Forums
Jemstar
Mon Sep 08 2014, 05:00AM

Posts: 8
Joined: Sat Sep 06 2014, 07:46AM
Registered Member #8093
Hi I have just set LGSL for our Wolf:ET server.

The below code would be fantastic!!

Where do I place this in my LGSL files,

Thanks for any help,

Jem.


Genert wrote ...

My code what is used.
This is for Wolfenstein:Enemy Territory.
But since IW is based on Q3,so =)

<?
//-------------------------------------------------------
    
function Q3Colors($str$std "white") {
        
$str ereg_replace("(\^)?$"""$str);
        
$str ereg_replace("\^\^""^"$str);
        
$str "<font color=\"" $std "\">" $str "</font>";
        
        
$color = array (
            
0  => "black",        1  => "red",        2  => "lime",        3  => "yellow",        4  => "blue",        
            
5  => "cyan",        6  => "magenta",    7  => "white",        8  => "orange",        9  => "gray",     
            
            
10 => "#CC9966",    11 => "teal",         12 => "purple",        13 => "#0066CC",    14 => "#6600CC",     
            
15 => "#3399CC",     16 => "#CCFFCC",     17 => "#006633",    18 => "#990033",     19 => "#993333",     
            
20 => "#993300",     21 => "#CC9966",    22 => "#999966",     23 => "#CCCC99",     24 => "#CCCC66",
            
            
"black"        => array (=> "0"=> "p"=> "P"                                            ),
            
"red"        => array (=> "1"=> "q"=> "Q"                                            ),
            
"lime"        => array (=> "2"=> "r"=> "R"                                            ),
            
"yellow"    => array (=> "3"=> "s"=> "S"                                            ),
            
"blue"        => array (=> "4"=> "t"=> "T"=> ">"                                ),
            
"cyan"        => array (=> "5"=> "u"=> "U"                                            ),
            
"magenta"    => array (=> "6"=> "v"=> "V"                                            ),
            
"white"        => array (=> "7"=> "w"=> "W"=> "z"=> "Z"=> "{"=> "["    ),
            
"orange"    => array (=> "8"=> "x"=> "X"                                            ),
            
"gray"        => array (=> "9"=> "y"=> "Y"=> ":"                                ),
            
            
"#CC9966"    => array (=> "a"=> "A"=> "!"=> ","                        ),
            
"teal"        => array (=> "b"=> "B"                                            ),
            
"purple"    => array (=> "c"=> "C"=> "#"                                    ),
            
"#0066CC"    => array (=> "d"=> "D"=> "&"=> "$"                        ),
            
"#6600CC"    => array (=> "e"=> "E"                                            ),
            
"#3399CC"    => array (=> "f"=> "F"                                            ),
            
"#CCFFCC"    => array (=> "g"=> "G"=> "'"                                    ),
            
//Genert - Yes,"<" must be here,kbrblol
            
"#006633"    => array (=> "h"=> "H"=> "("=> "\\"=> "|"=> "<",    ),
            
"#990033"    => array (=> "i"=> "I"=> ")"                                    ),
            
"#993333"    => array (=> "j"=> "J"=> "?"=> "*"=> "_"                ),
            
"#993300"    => array (=> "k"=> "K"=> '"'=> "@"                        ),
            
"#CC9966"    => array (=> "l"=> "L"=> "-"                                    ),
            
"#999966"    => array (=> "m"=> "M"=> "="=> "]"=> "}"                ),
            
"#CCCC99"    => array (=> "n"=> "N"=> "¤"=> "%"=> "."                 ),
            
"#CCCC66"    => array (=> "o"=> "O"=> "/",                                 ),
        );

        
//Genert - Could just be <font>
        
for ($i 0$i count($color) / 2$i++) {
            for (
$j 0$j count($color[$color[$i]]); $j++) {
                
$str str_replace("^"$color[$color[$i]][$j], "</FONT><FONT COLOR=\"" $color[$i] . "\">"$str);
            }
        }
        return 
$str;
    }
//-------------------------------------------------------
?>


Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org