Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Should go something like that:

(put you random lines in random.txt, each on a separate line and put it in the root mirc directory)

alias mta.admin {
 if ($2- == !start) {
   .timerrandom 0 600 mta.say $1 $read(random.txt)
 }
}

Almost!

alias mta.admin {
 if ($2- == !start) {
   !.timerrandom 0 600 mta.say $1 $!read(random.txt)
 }
}

The ! before timer makes iit execute faster

The ! before read makes the command evaluate every time the command is triggerd and not at the start of the timer evalated and get the same text over and over again...

[Edited]

Edited by Guest
Link to comment
isnt the ! before the timer just a quicker execution on the / and the . makes it silent? ;)

ARGH

Ur still half wrong:P

! triggers the orginal build-in command and not a alias of that command so it doesn't search in every script for a 'alias timer' which is faster ;)

Link to comment

should go something like this:

alias mta.kill {
 if ($mta.kills($1,$3) == 10) && ($mta.deaths($1,$3) == 0) {
   mta.msg $1 $3 You are suspected to be cheating (Youd have 10 kills and no deaths)
   mta.kick $1 $3
 }
}

Just paste that into a script file and load it in mtama

BTW: I don't think this is really a good way to find cheaters - there's no substitute for a good admin...

Also this may work, not sure though (works out whether the kills = 10 more than the deaths)

alias mta.kill {
 if ($calc($mta.kills($1,$3) - $mta.deaths($1,$3)) >= 10 {
   mta.msg $1 $3 You are suspected to be cheating!
   mta.kick $1 $3
 }
}

Edited by Guest
Link to comment

alias mta.join { 
 var %a = 1 
 while %a <= $lines(shiters.txt) { 
   if $read(shiters.txt,%a) isin $mta.name($1,$2) { 
     mta.say $1 $read(shiters.txt,%a) Is banned,Please go to www.tlr-clan.co.uk to apeal. 
     mta.ban $1 $2 
   } 
   !inc %a 
 } 
 if $read(shits.txt,w,$mta.name($1,$2)) { 
   mta.say $1 $mta.name($1,$2) Is banned,Please go to www.tlr-clan.co.uk to apeal. 
   mta.kick $1 $2 
 } 
} 
alias mta.text {
 if ($3 == brb) {
   mta.say $1 $mta.name($1,$2) $+ : will be right back!
 }
 elseif ($3 == lagger || $3 == lagga) {
   mta.slap $1 $2
   mta.say $1 $mta.name($1,$2) stop complaining
 } 
 alias mta.command { 
   if !aban == $3 && *TLR*Andy isin $mta.name($1,$2) { 
     if $4 !== $null { 
       mta.say $1 $mta.name($1,$2) has advance banned $mta.name($1,$4) Good Bye! 
       !write shits.txt $mta.name($1,$4) 
       mta.ban $1 $4 
     } 
   }
   elseif ($3 == !djon) && (*TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 TLR-RADIO Mode NOW ON!
     /timer 0 60 /mta.say $1 TLR-Radio IS NOW ON!!,Open URL With: http://213.230.209.159:8000/
   }
   elseif ($3 == !djoff) && (*TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 TLR-Radio Mode Is Now OFF!
     /timer1 off
   }
   elseif ($3 == !reload && *TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 Script reloaded! 
     !reload -rs $+(",$script,") 
   } 
   elseif ($3 == !lagging) && *TLR*Andy isin $mta.name($1,$2) { 
     if ( $4 isnum ) { 
       unset %lagging 
       set %countlag 0 
       while (%countlag < 26 ) { 
         if ( $mta.ping($1, %countlag ) > $4 ) { 
           %lagging = %lagging $mta.name($1, %countlag ) $+ , 
         } 
         %countlag = %countlag + 1 
       } 
       if ( %lagging == $null ) { 
         mta.say $1 No people in the server have an average ping higher than $4 
       } 
       else { 
         mta.say $1 Average pings above $4 $+ : %lagging 
       } 
       unset %lagging 
       unset %countlag 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : Error - Please specify a ping. Syntax: !lagging 
     } 
   }
   elseif !clanban == $3 && *TLR*Andy isin $mta.name($1,$2) { 
     if $4 !== $null { 
       mta.say $1 $mta.name($1,$2) has banned all members of $4 $+ . Good Bye! 
       !write shiters.txt $4 
       clanban $1- 
     } 
   } 
   elseif ($3 == !kill) && (*TLR*Andy isin $mta.name($1,$2)) { 
     .timer1 1 1 mta.say $1 Killing $mta.name($1,$4) in 5 seconds! 
     .timer6 1 6 !.timerkill 5 1 /mta.slap $1 $4
   }  
   elseif ($3 == !slap) && (*TLR*Andy isin $mta.name($1,$2)) { 
     .timer1 1 1 mta.say $1 slapping $mta.name($1,$4) in 5 seconds! 
     .timer6 1 6 !.timerkill 1  1 /mta.slap $1 $4
   }   
   elseif ($3 == !rules) && TLR isin $mta.name($1,$2) { 
     if ($4 != $null) { 
       mta.msg $1 $4 $mta.name($1,$4) Don't brake these rules!!! 
       .timer 1 1 mta.msg $1 $4 No Cheating/Modding 
       .timer 1 2 mta.msg $1 $4 No Bitching
       .timer 1 3 mta.msg $1 $4 No Chopper Kills
       .timer 1 4 mta.msg $1 $4 No Pausing 
       .timer 1 5 mta.msg $1 $4 No Recruiting/Advertising
       .timer 1 6 mta.msg $1 $4 No Spawn Killing
       .timer 1 7 mta.msg $1 $4 Obey the rules or else be kicked/banned! 
     } 
     else { 
       mta.msg $1 $2 TLR-Server Rules 
       .timer 1 1 mta.msg $1 $2 No Cheating/Modding 
       .timer 1 2 mta.msg $1 $2 No Bitching 
       .timer 1 3 mta.msg $1 $2 No Chopper Kills
       .timer 1 4 mta.msg $1 $2 No Pausing
       .timer 1 5 mta.msg $1 $2 No Recruiting/Advertising
       .timer 1 6 mta.msg $1 $2 No Spawn Killing
       .timer 1 7 mta.msg $1 $2 Obey the rules or else be kicked/banned!
     } 
     elseif (!admin == $3) { 
       mta.say $1 The admin has been alerted. 
       /run C:\admin.wav
     }  
   }
   alias mta.part {
     if ($3 == kicked) { 
       inc %kick 
       .timer -m 1 1 mta.say $1 %kick $+ th idiot to get kicked 
     } 
   }
   alias mta.kill { 
     if ($mta.kills($1,$3) == 9) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills! 
     if ($mta.kills($1,$3) == 19) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills! 
     if ($mta.kills($1,$3) == 29) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills! 
     if ($mta.kills($1,$3) == 39) mta.say $1 Woohoo $mta.name($1,$3) has 40 kills! 
     if ($mta.kills($1,$3) == 49) mta.say $1 Woohoo $mta.name($1,$3) has 50 kills! 
     if ($mta.kills($1,$3) == 59) mta.say $1 Woohoo $mta.name($1,$3) has 60 kills! 
     if ($mta.kills($1,$3) == 69) mta.say $1 Woohoo $mta.name($1,$3) has 70 kills! 
     if ($mta.kills($1,$3) == 79) mta.say $1 Woohoo $mta.name($1,$3) has 80 kills! 
     if ($mta.kills($1,$3) == 89) mta.say $1 Woohoo $mta.name($1,$3) has 90 kills! 
     if ($mta.kills($1,$3) == 99) mta.say $1 Woohoo $mta.name($1,$3) has 100 kills! 
   }
 } 
} 
alias clanban { 
 var %a = 0 
 while (%a < 32) { 
   if ($4 isin $mta.name($1,%a)) mta.ban $1 %a 
   !inc %a 
 } 
} 

I killed another script,apart from most of it not working it kicks and bans people :lol: , any chance someone could fix it please?

alias mta.text { 
if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { 
 if ($3 == !kick) mta.kick $1 $4 
 if ($3 == !ban) mta.ban $1 $4 
 ;
} 
alias mta.pm { 
if ($3- == admin password) { 
 mta.say $1 Admin rights given to $mta.name($1,2) 
 writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 
} 
} 

And could this be added, all the commands with *TLR*Andy isin be put in the login script??.

Link to comment
how do you get it to vive a reson when you kick someone?

I have

  elseif (f*ck isin $3-) mta.kick $1 $2 Reason: Swearing is not allowed

But it dosent give a reason

 if ($3 == !kick && =NSA=Jamie isin $mta.name($1,$2)) {
   if ($4 != $null) {
    mta.say $1 Kicking $mta.name($1,$4). Reason: $5
    mta.kick $1 $4
   }
 }

Link to comment
how do you get it to vive a reson when you kick someone?

I have

  elseif (f*ck isin $3-) mta.kick $1 $2 Reason: Swearing is not allowed

But it dosent give a reason

 if ($3 == !kick && =NSA=Jamie isin $mta.name($1,$2)) {
   if ($4 != $null) {
    mta.say $1 Kicking $mta.name($1,$4). Reason: $5-
    mta.kick $1 $4
   }
 }

As Dan Put mta.say $1 Kicking $mta.name($1,$4). Reason: $5 that would only give a one word reason but if u did it as

mta.say $1 Kicking $mta.name($1,$4). Reason: $5- you can give the reason with more than one words

so the whole coad would be

 if ($3 == !kick && =NSA=Jamie isin $mta.name($1,$2)) {
   if ($4 != $null) {
    mta.say $1 Kicking $mta.name($1,$4). Reason: $5-
    mta.kick $1 $4
   }
 }

Edited by Guest
Link to comment
alias mta.join { 
 var %a = 1 
 while %a <= $lines(shiters.txt) { 
   if $read(shiters.txt,%a) isin $mta.name($1,$2) { 
     mta.say $1 $read(shiters.txt,%a) Is banned,Please go to www.tlr-clan.co.uk to apeal. 
     mta.ban $1 $2 
   } 
   !inc %a 
 } 
 if $read(shits.txt,w,$mta.name($1,$2)) { 
   mta.say $1 $mta.name($1,$2) Is banned,Please go to www.tlr-clan.co.uk to apeal. 
   mta.kick $1 $2 
 } 
} 
alias mta.text {
 if ($3 == brb) {
   mta.say $1 $mta.name($1,$2) $+ : will be right back!
 }
 elseif ($3 == lagger || $3 == lagga) {
   mta.slap $1 $2
   mta.say $1 $mta.name($1,$2) stop complaining
 } 
 alias mta.command { 
   if !aban == $3 && *TLR*Andy isin $mta.name($1,$2) { 
     if $4 !== $null { 
       mta.say $1 $mta.name($1,$2) has advance banned $mta.name($1,$4) Good Bye! 
       !write shits.txt $mta.name($1,$4) 
       mta.ban $1 $4 
     } 
   }
   elseif ($3 == !djon) && (*TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 TLR-RADIO Mode NOW ON!
     /timer 0 60 /mta.say $1 TLR-Radio IS NOW ON!!,Open URL With: http://213.230.209.159:8000/
   }
   elseif ($3 == !djoff) && (*TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 TLR-Radio Mode Is Now OFF!
     /timer1 off
   }
   elseif ($3 == !reload && *TLR*Andy isin $mta.name($1,$2)) { 
     mta.say $1 Script reloaded! 
     !reload -rs $+(",$script,") 
   } 
   elseif ($3 == !lagging) && *TLR*Andy isin $mta.name($1,$2) { 
     if ( $4 isnum ) { 
       unset %lagging 
       set %countlag 0 
       while (%countlag < 26 ) { 
         if ( $mta.ping($1, %countlag ) > $4 ) { 
           %lagging = %lagging $mta.name($1, %countlag ) $+ , 
         } 
         %countlag = %countlag + 1 
       } 
       if ( %lagging == $null ) { 
         mta.say $1 No people in the server have an average ping higher than $4 
       } 
       else { 
         mta.say $1 Average pings above $4 $+ : %lagging 
       } 
       unset %lagging 
       unset %countlag 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : Error - Please specify a ping. Syntax: !lagging 
     } 
   }
   elseif !clanban == $3 && *TLR*Andy isin $mta.name($1,$2) { 
     if $4 !== $null { 
       mta.say $1 $mta.name($1,$2) has banned all members of $4 $+ . Good Bye! 
       !write shiters.txt $4 
       clanban $1- 
     } 
   } 
   elseif ($3 == !kill) && (*TLR*Andy isin $mta.name($1,$2)) { 
     .timer1 1 1 mta.say $1 Killing $mta.name($1,$4) in 5 seconds! 
     .timer6 1 6 !.timerkill 5 1 /mta.slap $1 $4
   }  
   elseif ($3 == !slap) && (*TLR*Andy isin $mta.name($1,$2)) { 
     .timer1 1 1 mta.say $1 slapping $mta.name($1,$4) in 5 seconds! 
     .timer6 1 6 !.timerkill 1  1 /mta.slap $1 $4
   }   
   elseif ($3 == !rules) && TLR isin $mta.name($1,$2) { 
     if ($4 != $null) { 
       mta.msg $1 $4 $mta.name($1,$4) Don't brake these rules!!! 
       .timer 1 1 mta.msg $1 $4 No Cheating/Modding 
       .timer 1 2 mta.msg $1 $4 No Bitching
       .timer 1 3 mta.msg $1 $4 No Chopper Kills
       .timer 1 4 mta.msg $1 $4 No Pausing 
       .timer 1 5 mta.msg $1 $4 No Recruiting/Advertising
       .timer 1 6 mta.msg $1 $4 No Spawn Killing
       .timer 1 7 mta.msg $1 $4 Obey the rules or else be kicked/banned! 
     } 
     else { 
       mta.msg $1 $2 TLR-Server Rules 
       .timer 1 1 mta.msg $1 $2 No Cheating/Modding 
       .timer 1 2 mta.msg $1 $2 No Bitching 
       .timer 1 3 mta.msg $1 $2 No Chopper Kills
       .timer 1 4 mta.msg $1 $2 No Pausing
       .timer 1 5 mta.msg $1 $2 No Recruiting/Advertising
       .timer 1 6 mta.msg $1 $2 No Spawn Killing
       .timer 1 7 mta.msg $1 $2 Obey the rules or else be kicked/banned!
     } 
     elseif (!admin == $3) { 
       mta.say $1 The admin has been alerted. 
       /run C:\admin.wav
     }  
   }
   alias mta.part {
     if ($3 == kicked) { 
       inc %kick 
       .timer -m 1 1 mta.say $1 %kick $+ th idiot to get kicked 
     } 
   }
   alias mta.kill { 
     if ($mta.kills($1,$3) == 9) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills! 
     if ($mta.kills($1,$3) == 19) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills! 
     if ($mta.kills($1,$3) == 29) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills! 
     if ($mta.kills($1,$3) == 39) mta.say $1 Woohoo $mta.name($1,$3) has 40 kills! 
     if ($mta.kills($1,$3) == 49) mta.say $1 Woohoo $mta.name($1,$3) has 50 kills! 
     if ($mta.kills($1,$3) == 59) mta.say $1 Woohoo $mta.name($1,$3) has 60 kills! 
     if ($mta.kills($1,$3) == 69) mta.say $1 Woohoo $mta.name($1,$3) has 70 kills! 
     if ($mta.kills($1,$3) == 79) mta.say $1 Woohoo $mta.name($1,$3) has 80 kills! 
     if ($mta.kills($1,$3) == 89) mta.say $1 Woohoo $mta.name($1,$3) has 90 kills! 
     if ($mta.kills($1,$3) == 99) mta.say $1 Woohoo $mta.name($1,$3) has 100 kills! 
   }
 } 
} 
alias clanban { 
 var %a = 0 
 while (%a < 32) { 
   if ($4 isin $mta.name($1,%a)) mta.ban $1 %a 
   !inc %a 
 } 
} 

I killed another script,apart from most of it not working it kicks and bans people :lol: , any chance someone could fix it please?

alias mta.text { 
if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { 
 if ($3 == !kick) mta.kick $1 $4 
 if ($3 == !ban) mta.ban $1 $4 
 ;
} 
alias mta.pm { 
if ($3- == admin password) { 
 mta.say $1 Admin rights given to $mta.name($1,2) 
 writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 
} 
} 

And could this be added, all the commands with *TLR*Andy isin be put in the login script??.

OMFG Andy, how many times have i told you, you dont need al those '}'. You only need 1 '}' to close 1 '{'. But i cba to help u out :lol:

Link to comment

dan i have done a '{}' check with scripts editor, can someone who cba help me please? :)

alias mta.text {  
 if ($3 == ) {
   mta.say $1 Kicking $mta.name($1,$2) , Reason: Swearing is not allowed.
   mta.kick $1 $2 
 }
}

this one will kick anyone who says automatically :P

Link to comment

If I have more than one banned word it dosent work for the second, third one etc. I have this:

 if ($3 == f*ck) { 
   mta.say $1 Kicking $mta.name($1,$2) , Reason: Swearing; Swearing is NOT allowed! 
   mta.kick $1 $2 
   elseif ($3 == sh*t) { 
     mta.say $1 Kicking $mta.name($1,$2) , Reason: Swearing; Swearing is NOT allowed! 
     mta.kick $1 $2  
    elseif ($3 == message 1message 1message 1message 1message 1) { 
       mta.say $1 Banning $mta.name($1,$2) , Reason: Suspected spam with bot. 
       mta.ban $1 $2
     }

Link to comment
If I have more than one banned word it dosent work for the second, third one etc. I have this:

 if ($3 == f*ck) { 
   mta.say $1 Kicking $mta.name($1,$2) , Reason: Swearing; Swearing is NOT allowed! 
   mta.kick $1 $2 
   elseif ($3 == sh*t) { 
     mta.say $1 Kicking $mta.name($1,$2) , Reason: Swearing; Swearing is NOT allowed! 
     mta.kick $1 $2  
    elseif ($3 == message 1message 1message 1message 1message 1) { 
       mta.say $1 Banning $mta.name($1,$2) , Reason: Suspected spam with bot. 
       mta.ban $1 $2
     }

alias mta.text {   
 if ($3 ==  || $3 == ) {
   mta.say $1 Kicking $mta.name($1,$2)  Reason: Swearing; Swearing is NOT allowed!
   mta.kick $1 $2
 }  
 elseif ($3 == message 1message 1message 1message 1message 1) { 
   mta.say $1 Banning $mta.name($1,$2) , Reason: Suspected spam with bot. 
   mta.ban $1 $2 
 } 

give that a try, replace and withs the words :P

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...