rendered paste bodyalias connectserver {
sockudp -k steamslutchecks 7131 203.123.67.147 27015
}
on *:start: {
/connectserver
}
on *:udpread:steamslutchecks:{
if ($sockerr > 0) {
return
}
:nextread
sockread -f %rcon.data
if ($sockbr == 0) {
return
}
if (%rcon.data == $null) {
goto nextread
}
else {
if (*"*from*"*"* iswm %rcon.data) {
%rcon.data = $null
}
if ($left(%rcon.data,5) == ÿÿÿÿl) {
%rcon.data = $remove(%rcon.data,$left(%rcon.data,5))
%rcon.data = $gettok(%rcon.data,6- $+ $numtok(%rcon.data,32),32)
if (*"* iswm %rcon.data) {
%rcon.data = $remove(%rcon.data,")
}
if (*attacked* !iswm %rcon.data) {
msg #snak %rcon.data
}
else {
%rcon.data = $null
}
if ($remove(%rcon.data,") == $null) {
goto nextread
}
}
}
if (%rcon.data != $null && %rcon.data != () && %rcon.data != ") {
/*
echo -s %rcon.data
*/
}
goto nextread
}