Originally Posted by
kung foo man
PHP Code:
sendGameServerCommand(-1, "h \"" + level.consoleName + "^7: " + message + "\"");
For some reason the forum seems to remove the slash from
\ when copying the code back into the textarea :S
Just make sure to have the two
\ in your code
I might disable the complete color shit and stupid formatting in vbb editor.
(Maybe wrong that test.sh "+set consoleName $Nanny"\)
PHP Code:
#!/bin/bash
sv_maxclients="32"
fs_game="console"
fs_homepath="/root/cod2"
cod="/root/cod2/cod2_lnxded_1_0a"
com_hunkMegs="256"
config="by.cfg"
cracked="1"
net_port="28929"
args=\
"+set fs_homepath \"$fs_homepath\" "\
"+set sv_cracked $cracked "\
"+set fs_game $fs_game "\
"+set net_port $net_port "\
"+set com_hunkMegs $com_hunkMegs "\
"+set sv_maxclients $sv_maxclients "\
"+set fs_basepath \"$fs_homepath\" "\
"+set consoleName $Nanny"\
"+exec $config"
LD_PRELOAD="/root/cod2/libcod/bin/libcod2_1_0.so" $cod $args +set g_gametype tdm +map mp_toujane