Advertisement
intersys

Untitled

Sep 26th, 2014
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.47 KB | None | 0 0
  1. alias ipc {
  2.   if ($regex($1-,\b(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,6})\b)) { return $true }
  3.   else { return $false }
  4. }
  5.  
  6. alias cod2 {
  7.   if ($ipc($1) == $true) {
  8.     sockudp -k cod_server $gettok($1,1,58) $gettok($1,2,58) $str($chr(255),4) $+ getstatus
  9.   }
  10.   else { echo -a ip worng! }
  11. }
  12. alias cget { if ($regex($1-,/\\ $+ $prop $+ \\([^\\]+?)\\/)) { return $regml(1) } }
  13. on *:udpread:cod_server: {
  14.   var %cod_sock
  15.   sockread %cod_sock
  16.   set %mapa $cget(%cod_sock).mapname
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement