Jump to content

Problems with script, please help fast!


SanZoR

Recommended Posts

Hello,

i got problem with this script:

on *:SIGNAL:mta.command:{
 if ($3 == !mode) map.mode $1-
}
alias map.mode {
 if (!$sock(map.mode)) sockopen map.mode www.xendot.com 80
}
on *:SOCKOPEN:map.mode*:{
 tokenize 32 %map.mode
 if ($sockerr > 0) {
   sockclose $sockname
   mta.text $1 Error with !mode command!
 }
 else {
   sockwrite -n $sockname GET /mta/map/respawn.php?map= $+ http://fin-mta.zapto.org/maps/ $+ $mta.race($1) $+ .map $+ &display=whois HTTP/1.1
   sockwrite -n $sockname User-Agent: MSIE 6.0
   sockwrite -n $sockname Host: www.xendot.com
   sockwrite $sockname $crlf
 }
}
on *:SOCKCLOSE:map.mode*:{
 unset %tr.*
}
on *:SOCKREAD:map.mode*:{
 var %t
 sockread %t
   tokenize 32 %map.mode
   mta.text $1 $mta.race($1) $+ 's Respawn Mode: $gettok(%t,2-,58)
   sockclose $sockname
 }
}

Example: http://www.xendot.com/mta/map/respawn.php?map=http://fin-mta.zapto.org/maps/flatout.map

If you found what is wrong, please help!

Thanks for advance!

Edited by Guest
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...