Jump to content

lil Toady

Retired Staff
  • Posts

    2,318
  • Joined

  • Last visited

Posts posted by lil Toady

  1. in mta:sa dm you can shoot the body even with high ping ;) I've been playing once with 1000 ping and that didn't spoil my game anyhow. I was still shooting in people's body, and they were shooting me

    yeah but in games bullets kinda "teleport" into the targets body i.e. they dont travel to get there

    wrong, they do not "teleport", they do the whole way from one player to another

  2. in mta:sa dm you can shoot the body even with high ping ;) I've been playing once with 1000 ping and that didn't spoil my game anyhow. I was still shooting in people's body, and they were shooting me

  3. on *:SIGNAL:mta.command:{ 
     var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2)
     if (($3 == !time) || ($3 == !date)) mta.text $1 Time: $time - Date: $date 
     elseif ($3 == !map) { 
       if ($mta.race($1) == Unknown) mta.pm $1 $2 Error - Unknown Race 
       else mta.text $1 Current Race: $mta.race($1) 
     } 
     elseif ($3 == !restart) mta.startrace $1 $mta.races($1,$mta.race($1)) 
     elseif ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a))) 
    }

    !!!

  4. There is no problem with ban. If it didn't kick out a player when you released the command, that's probably admin packet loss, if it kicked him out but he returned, the player has a dynamic ip, that means that you'll need to ban whole his range to get rid of him. But that range ban could also ban lots of players who didn't do anything

    There is really no good solution for that

  5. there is a way to know how many timers you have ;) $timer(0)

    But there is no way to know which unnamed timers are for ur auto messages and which are for other stuff.

    its up to u.. dont name them if u dont want to. :roll:

    yes you can! :D

    if (mta.say* iswm $timer(ID).com) {}

    Well yeh you can get anything from a timer, but it's easier to name them

  6. it does work on mta:sa, if you need that for 0.5 u need this:

    on *:SIGNAL:mta.command:{
     var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)
     if ($3 == !lol) mta.say $1 $mta.name($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.name($1,%a)))
    }

  7. Can't you just start and stop the messages with a command?

    Sure, but i dont think theres a way to stop individual unnamed timers.

    coz as it was b4, everytime u connect, a new timer is started, the old one didnt get stopped.

    so u would end up with tons of timers running and eventually loads of messages.

    Yeah there is a way to stop unnamed timers but it's a bit complicated. Every timer has it's own id, so you'll have to do a loop and check what every timer does and stop the needed one.

  8. yes, just any command in format

    elseif ($3 == !something) mta.text $1 my text

    just make sure that the first command always has an 'if (blablabla) {}' and others 'elseif (blablabla) {}'

    or just use 'if' everywhere, but that's gonna use more cpu

    that $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) is there to show a name if it's specified or show nothing if it's not

  9. on *:SIGNAL:mta.command:{
     var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2)
     if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a)))
     elseif ($3 == !wb) mta.text $1 $mta.nick($1,$2) says welcome back $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a)))
    }

  10. the fact is that you didn't do anything special so it was just useless. Also for scripting beginners it's a way easier to do that the way i posted imo. W/e i won't argue..

  11. Here, you only have to add some levels for the commands and change the CLANTAG to your clan tag

    P.S: Next time use search. Scripts like that have been posted before.

    on *:SIGNAL:mta.join:{
     if (CLANTAG isin $mta.nick($1,$2)) {
       var %a = 0
       while (%a <= $lines($scriptdir $+ members.txt)) {
         if ($mta.nick($1,$2) == $read($scriptdir $+ members.txt,%a)) !halt
         !inc %a
       }
       mta.text $1 Kicking: $+(',$mta.nick($1,$2),') - imposter.
       mta.kick $1 $2
     }
    }
    on *:SIGNAL:mta.command:{
     if ($3 == !shutdown) {
       mta.text $1 Server is being shut down.
       mta.shutdown $1
     }
     elseif ($3 == !addmember) {
       if ($4) {
         mta.text $1 Member $+(',$4,') added.
         !write " $+ $scriptdir $+ members.txt" $4
       }
       else mta.pm $1 $2 Error - Member name missing
     }
     elseif ($3 == !remmember) {
       if ($4) {
         var %a = 0
         while (%a <= $lines($scriptdir $+ members.txt)) {
           if ($4 == $read($scriptdir $+ members.txt,%a)) {
             mta.text $1 Member $+(',$read($scriptdir $+ members.txt,%a),') removed.
             !write -dl $+ %a " $+ $scriptdir $+ members.txt"
             !halt
           }
           !inc %a
         }
         mta.pm $1 $2 Member $+(',$4,') not found
       }
       else mta.pm $1 $2 Error - Member name missing
     }
    }

  12. on *:SIGNAL:mta.command:{
     var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2)
     if ($3 == !lookup) {
       if (%a == -1) mta.msg $1 $2 Error - Absent ID
       else my.trace $1 %a
     }
    }
    alias my.trace {
     set %my.trace $1 $2
     if (!$sock(my.trace $+ $mta.ip($1,$2))) sockopen my.trace $+ $mta.ip($1,$2) api.hostip.info 80
    }
    on *:SOCKOPEN:my.trace*:{
     tokenize 32 %my.trace
     if ($sockerr > 0) {
       sockclose $sockname
       mta.text $1 Trace: An error has occured. (socket error)
     }
     else {
       sockwrite -n $sockname GET /get_html.php?ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1
       sockwrite -n $sockname Host: api.hostip.info
       sockwrite -n $sockname Connection: keep-alive
       sockwrite $sockname $crlf
     }
    }
    on *:SOCKCLOSE:my.trace*:{
     unset %my.trace
     tokenize 32 %my.trace
     mta.text $1 $mta.nick($1,$2) - Country: $gettok(%my.trace.r,1,32) $+ , City: $gettok(%my.trace.r,2,32)
    }
    on *:SOCKREAD:my.trace*:{
     var %t
     sockread %t
     if (Country isin %t) {
       set %my.trace.r $iif(Unknown isin %t,Unknown,$gettok(%t,2-,32))
     }
     elseif (City isin %t) {
       set %my.trace.r %my.trace.r $iif(Unknown isin %t,Unknown,$gettok(%t,2-,32))
       sockclose $sockname
     }
    } 

  13. on *:SIGNAL:mta.command:{
     var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2)
     if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a)))
    }

  14. on *:SIGNAL:mta.join:{
     !writeini " $+ $scriptdir $+ mta.rank.ini" RANKS $mta.nick($1,$2) $calc($readini($scriptdir $+ mta.rank.ini,RANKS,$mta.nick($1,$2)) + 1)
     mta.rank $1 $2
    }
    on *:SIGNAL:mta.command:{
     var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2)
     if ($3 == !rank) {
       if (%a == -1) mta.pm $1 $2 Error - Absent ID
       else mta.rank $1 %a
     }
    }
    alias mta.rank {
     var %rank = $readini($scriptdir $+ mta.rank.ini,RANKS,$mta.nick($1,$2))
     if (%rank == 10) mta.text $1 $mta.nick($1,$2) $+ 's rank is: blablabla
     elseif (%rank == 20) mta.text $1 $mta.nick($1,$2) $+ 's rank is: blablablabla
    }

×
×
  • Create New...