yawning players from your server easier?
•
28 Jul 2008, 20:11
•
Journals
Dunno if anybody will found it useful, but as I haven't heard about linux yawn client, and I was usually playing on my own ET server, I wrote a small&simple php script which was displaying who is playing on my server with links to their yawn. Today, as I was a little bored tbh I rewrited it and decided to show here, as maybe somebody will found it useful (dunno, maybe somebody will:) ). Oh, and yes, I do know the so-called "layout" looks ugly, because there isn't any at all :) Wasn't needed for me.
Static example: http://trakos.pl/yawn/example.html
Script itself: http://trakos.pl/yawn/yawning.txt
style.css: http://trakos.pl/yawn/style.css
Just renamed yawning.txt to whatever.php and change the three variables there: ip, port and passwd (it's the rcon password obviously). Should work :)
Static example: http://trakos.pl/yawn/example.html
Script itself: http://trakos.pl/yawn/yawning.txt
style.css: http://trakos.pl/yawn/style.css
Just renamed yawning.txt to whatever.php and change the three variables there: ip, port and passwd (it's the rcon password obviously). Should work :)
this has a lot more uses outside of being a replacement yawn client for linux...
i think im even gonna modify it to log everything... which would just be awesome
Anyway I've got some perl scripts around my server too, but they are... well, I don't like perl :> Maybe it's the fact I haven't really coded in it much - just a few scripts - but it feels kinda... sloppy - for me. Maybe I'll look there later, maybe some ideas on how I can add some features will come from reading it :)
but anyway sometimes I want to see full yawn, so np.
And anyway it's a few minutes work tbh. Ofc it took me an hour xD
I found one from 2003 but with note that:
Note that YAWn! Linux is for the old YAWn! service, there is no Linux client for
the current YAWn! service yet.
and for rtcw. But I will keep on looking ^^
you should code it!
gonna test it now :D
news imo
NickGuidPbguidIp"; foreach($players as $pid => $player) { $nick = $player['nick']; $ip = $player['ip']; $guid = $player['guid']; $pbguid = $player['pbguid']; $os = $player['os']; $len = strlen($nick); for($n=0; $n<$len; $n++) { if($nick[$n] == '^') { $newnick= substr($nick, 0, $n).substr($nick, $n+2); $nick = $newnick; $len-=2; } } echo ""; echo ''; echo htmlspecialchars($nick); echo ""; echo ""; echo ''; echo htmlspecialchars($guid); echo ""; echo ""; echo ''; echo htmlspecialchars($pbguid); echo ""; echo ""; echo htmlspecialchars($ip); echo ""; } echo ""; ?>
is what i get D:
It's strange, I've just checked it to be sure and simply made cp yawning.txt yawning.php and it was working, so... hmmm...