Advertisement
westor

sbf4

Nov 6th, 2014
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.35 KB | None | 0 0
  1. alias ss {
  2.   sockclose sbf4
  3.   sockopen sbf4 api.bf4stats.com 80
  4.   sockmark sbf4 /api/onlinePlayers?output=lines
  5. }
  6.  
  7. on *:SockOpen:sbf4: {
  8.   sockwrite -nt sbf4 GET $sock($sockname).mark HTTP/1.0
  9.   sockwrite -nt sbf4 Host: api.bf4stats.com
  10.   sockwrite -nt sbf4 $crlf
  11. }
  12. on *:SockRead:sbf4: {
  13.   var %read
  14.   sockRead %read
  15.   echo -a READ: %read
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement