UT2004 Server (Query) Informations

By Lenooox on Apr 19, 2011

Screenshots

You can advertise your server and, whatch who play on your server
This snippet write your server informations, who playing , and scores of teams!
many people searching and want this script
I use this script in my bot and works good :)
change the following :
change: <your UT2004 Server
change:
change: your channel(s):
msg #yourchan1
;msg #yourchan2
;msg #yourchan3
You can set other timer intervallum <3600> " many people do not like the spam :) "
usage :
!onserver
!offserver

looks like:
(14:00:45) (@Zer0Code11) UnrealTournament 2004 - InSane Public Clan Server IP: ( 46.249.40.111:7777 ) Now Running : DM-Tempest4 - Players: 2

Good Luck & Have Fun

on *:text:!onserver:#: { .timerServerinfos 0 3600 sockudp -k gqueryut <your UT2004 Server <ip> <Software Port> \info\\players\\basic\  }
on *:text:!offserver:#: { .timerServerinfos off }
on *:udpread:gqueryut:{
  sockread &t
  if ($bvar(&t,0)) {
    var %t = $bvar(&t,1-).text
    var %msg UnrealTournament 2004 -7 $gettok(%t,$calc($findtok(%t,hostname,92) + 1),92) IP: 4( <your UT2004 Server ip:port> 4)  Now Running : 7 $gettok(%t,$calc($findtok(%t,mapname,92) + 1),92) -  Players:7 %Query_player $gettok(%t,$calc($findtok(%t,numplayers,92) + 1),92)
    msg #yourchan1 %msg
    ;msg #yourchan2 %msg
    ;msg #yourchan3 %msg
   ;etc...
  }
  sockclose $sockname
} 

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.