console messages



> > >

2 months ago
Ssc||supeRRR Pakistan
Send PM
how to set up console messages in server can anybuddy tell me please.!
2 months ago
fiavbr Germany
Send PM
rcon say "Message"
2 months ago
CuriousFox Latvia
Send PM
/kill
2 users like this:
2 months ago
eQuinox Emy Belgium
Send PM
I know that with some rcontools, you could set up console messages.
Big con is that it only works when the tool is on. So if you turn it off, the messages will no longer show up on your server until you turn it back on again.

It's also possible with Rafi's bantool, which works 24/7 (so you don't have to leave it on at all times). However, I don't know if Rafi still gives away access to his bantool, he is a busy man.

There are probably other solutions but I don't know them so I'll leave that to the pros. :)
2 months ago
CuriousFox Latvia
Send PM
Hmmm
2 months ago
CuriousFox Latvia
Send PM
For reapeating server messages like info, next map, etc you may want to edit cfg files, and define your messages there AFAIK
2 months ago
=]T)c(L[=>LaxaRRR< Argentina
Send PM
What should be done to repeat the messages?
2 months ago
CuriousFox Latvia
Send PM
If you want simply repeat them after periiod of time in the left bottom part of screen, you need to define messages, and in gsc just use iprintln() function in the loop, dat simple way


Using to display messages from console (like 'console: hey') in the chat is a bit more difficult, IMO it is needed to have a separate cfg which contains rcon say commands, so this cfg could be called via 'exec'
3 users like this:
2 months ago
Plutooox Sri Lanka
Send PM
<?php

$ip = "111.111.111.111";      // server ip-address
$port = 28960;                // server port
$rcon_password = "rconpassword";  // rcon password


$message1 = "1st message"; // server message 1
$message2 = "2nd message"; // server message 2
$message3 = "3rd-message"; // server message 3
$message4 = "4th-message"; // server message 4
$message5 = "5th-message"; // server message 5

//$message6 = "server message 6"; // extra messages

$interval = 1; // 1 min

ini_set('max_execution_time', 60000);

$sock = fsockopen("udp://$ip:$port", $port, $errno, $errstr );

while (true) {
    fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message1));
    sleep(60* $interval);
    {
    fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message2));    
    sleep(60* $interval);
    }
    {
    fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message3));
    sleep(60* $interval);
    }
    {
    fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message4));
    sleep(60* $interval);
    }
    {
    fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message5));
    sleep(60* $interval);
    }
    echo "Sent !";
 // {
 // fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message6));
 // sleep(60* $interval);
 // }
}

?>
1 user likes this:
2 months ago
=]T)c(L[=>LaxaRRR< Argentina
Send PM
Plutooox wrote:
<?php

$ip = "111.111.111.111"; // server ip-address
$port = 28960; // server port
$rcon_password = "rconpassword"; // rcon password


$message1 = "1st message"; // server message 1
$message2 = "2nd message"; // server message 2
$message3 = "3rd-message"; // server message 3
$message4 = "4th-message"; // server message 4
$message5 = "5th-message"; // server message 5

//$message6 = "server message 6"; // extra messages

$interval = 1; // 1 min

ini_set('max_execution_time', 60000);

$sock = fsockopen("udp://$ip:$port", $port, $errno, $errstr );

while (true) {
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message1));
sleep(60* $interval);
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message2));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message3));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message4));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message5));
sleep(60* $interval);
}
echo "Sent !";
// {
// fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message6));
// sleep(60* $interval);
// }
}

?>


This created a cfg file?
2 months ago
=]T)c(L[=>LaxaRRR< Argentina
Send PM
example RconSay.cfg?
2 users like this:
2 months ago
bdz Sweden
Send PM
=TCL=FRANCOLAXARRR wrote:
example RconSay.cfg?
No. This is a PHP script.

To run it, save it as filename.php (choose whatever name you want) and run it with php -f filename.php

I have not tried this script, but it should work with the instructions I gave you.
3 users like this:
2 months ago
eQuinox Emy Belgium
Send PM
Your picture fucked with my mind bdz :D
1 user likes this:
2 months ago
bdz Sweden
Send PM
eQuinox Emy wrote:
Your picture fucked with my mind bdz :D
You got a dirty mind! haha :* <3
2 months ago
eQuinox Emy Belgium
Send PM
(angel)(blush)
3 users like this:
2 months ago
Church of Emy:pablo Zimbabwe
Send PM
Emy is a naughy girl at times.
3 users like this:
2 months ago
CRE United Kingdom
Send PM
Bdz you wanna steal pablo's girl? Dude wanna step outside?
2 months ago
^wEaremAed doktor Germany
Send PM
Ohhhhhhje
8 users like this:
2 months ago
eQuinox Emy Belgium
Send PM
Pretty sure bdz has all he needs at home. :P

Also Pablito has publicly broken up with me on Think Green to hook up with Kendo, so I think I'm part of the single pringles now! :D
2 months ago
^wEaremAed doktor Germany
Send PM
What a babble
2 months ago
Ssc||supeRRR Pakistan
Send PM
can i create a txt like rconmsg.cfg and write msges should it works?
2 months ago
Ssc||supeRRR Pakistan
Send PM
<?php

$ip = "111.111.111.111"; // server ip-address
$port = 28960; // server port
$rcon_password = "rconpassword"; // rcon password


$message1 = "1st message"; // server message 1
$message2 = "2nd message"; // server message 2
$message3 = "3rd-message"; // server message 3
$message4 = "4th-message"; // server message 4
$message5 = "5th-message"; // server message 5

//$message6 = "server message 6"; // extra messages

$interval = 1; // 1 min

ini_set('max_execution_time', 60000);

$sock = fsockopen("udp://$ip:$port", $port, $errno, $errstr );

while (true) {
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message1));
sleep(60* $interval);
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message2));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message3));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message4));
sleep(60* $interval);
}
{
fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message5));
sleep(60* $interval);
}
echo "Sent !";
// {
// fwrite($sock, sprintf("\xFF\xFF\xFF\xFFrcon %s say %s\0", $rcon_password, $message6));
// sleep(60* $interval);
// }
}

?>
is this still works??
2 months ago
Ssc||supeRRR Pakistan
Send PM
bdz if u any script then paste it here i need it :3
1 user likes this:
2 months ago
bdz Sweden
Send PM
TEAM-UFC/SUPERMANNN wrote:
bdz if u any script then paste it here i need it :3
Well, I've not tried the PHP script, but you could try it out. You don't really need a config file for your server then. You can run the PHP script on Windows too if you're not using Linux.

Click here to see how to run it on Windows.
2 months ago
=]T)c(L[=>LaxaRRR< Argentina
Send PM
My server is Linux and has CodExtended v20
2 months ago
Church of Emy:pablo Zimbabwe
Send PM
Emy... Emy doesnt.... she doesn't shave her... her armpits.
1 user likes this:
2 months ago
Jump’it.hehu Japan
Send PM
bE A good follower and DO IT FOR HER!
Please sign in or create an account to post an answer.