/cs script
Posted by kobif
Friday, June 04, 2004
Description: passwording

how can i make it so i can type /cs ip ; password - and if no port is specified it will use 27015 and dns will resolve


alias cs {
  if ($gettok($ipverify($1),1,32) == Valid) {
    var %players = $hlquery($1).players
    var %locked = $hlquery($1).password
    if ($gettok(%players,1,47) == $gettok(%players,2,47)) echo -a The server is full!
    else {
      if (%locked == Yes) var %password = $?*="This server is locked! Please enter the password:"
      if ((%locked == Yes) && (%password == $null)) echo $color(text) -a The server is locked and you did not enter a password, not launching CS.
      else {
        var %password = $chr(59) $+ password %password
        echo $color(text) -a Launching CS to connect to $1 $+ ...
        echo $color(text) -a Server Details:
        hlserver $1
        msg #dome cs: $1
        run "C:\Program Files\Steam\Steam.exe" -applaunch 10 +connect $1 $+ %password
      }
    }
  }
.......
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world