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

alias mta.join {
 var %a = 0,%b
 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
 }
 elseif {
 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.command {
 if (!nban == $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 {
 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 shiters.txt $mta.name($1,$4)
     mta.ban $1 $4
   }
 }

This script was made mainly by Oli but I can't get it working. There’s spouse to be two shit list scripts, one that u can put (clan) in a .txt file and it bans anyone who join with (clan) in there name. Two a normal shit list where you can put a name into the .txt file and it bans them. The 2nd one works fine but 1st one doesn’t. Can someone please help me :cry:

Link to comment

give this a whirl u big big fool :)

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.command {
 if !nban == $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 !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-
   }
 }
}
alias clanban { 
 var %a = 0
 while (%a < 32) {
   if ($4 isin $mta.name($1,%a)) mta.ban $1 %a
   !inc %a
 }
}

Link to comment
first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T :o THINK SO!

mta.ban $1 $2

}

TRY:

alias mta.text { 
 if (brb == $3) { 
    mta.say $1 I DON'T  THINK SO! 
   mta.ban $1 * 
 }
}

...

it bans everyone doesnt it?

Link to comment

lol.

i found this script on the mtascripts.com, how is it tirggered?

alias mta.join {

if (mta.name($1,$2) > n00bish) }
mta.say $1 LauGh. owNed. iGnorEd. n00B!

elseif (mta.name($1,$2) < n00bish) 
mta.say $1 YoU DiDnT BeaT Me YoU hAcKer n00b.
mta.say $1 owNed.
{
}

[/code]

Link to comment
lol.

i found this script on the mtascripts.com, how is it tirggered?

alias mta.join {

if (mta.name($1,$2) > n00bish) }
mta.say $1 LauGh. owNed. iGnorEd. n00B!

elseif (mta.name($1,$2) < n00bish) 
mta.say $1 YoU DiDnT BeaT Me YoU hAcKer n00b.
mta.say $1 owNed.
{
}

[/code]

alias mta.join {
 if ($mta.name($1,$2) == n00bish) {
   mta.say $1 LauGh. owNed. iGnorEd. n00B!
 }
 elseif ($mta.name($1,$2) != n00bish) {
   mta.say $1 YoU DiDnT BeaT Me YoU hAcKer n00b.
   mta.say $1 owNed.
 }
}

I think it was under 'Impossible working scripts' section.

Link to comment

Why doesn't work this code?

Ive testet it but it won't work!

Please help me

alias mta.join {
/set %warn [ $+ [ $2 ] ] 0
}
alias mta.kill {
 if  ( $3 != $2 ) {
     /set %killed [ $+ [ $2 ] ] $3
     mta.say $1 $mta.name($1,$2) $+ , du kannst  $mta.name($1,$3) vergeben indem du !forgive $3 eintippst in 10 Sekunden
     timer.k 1 10 mta.killer $1 $2 $3
 }
}
alias mta.text {
 if ( ( $3 == !forgive ) && ( $4 != $null ) ) {
   if ( $4 == %killed [ $+ [ $2 ] ]) {
     unset %killed [ $+ [ $2 ] ]
     timer.k off
     mta.say $1 $mta.name($1,$2) vergibt dem Killer
     }
   }
 if  ( $3 == !warning ) {
   if ( ( $4 == $null ) || ( $4 isalpha ) ) {
     mta.say $1 $mta.name($1,$2) $+ , du hast %warn [ $+ [ $2 ] ] Verwarnung(en)
     mta.say $1 Wenn du noch $calc( 3 - %warn [ $+ [ $2 ] ] ) bekommst wirst du gekickt!
     }
   else mta.say $1 $mta.name($1,$4) hat %warn [ $+ [ $4 ] ] Verwarnungen!
 }
}
alias mta.killer {
 if ( %killed [ $+ [ $2 ] ] != $null ) {
   inc %warn [ $+ [ $3 ] ]
   if ( %warn [ $+ [ $3 ] ] == 3 ) {
     mta.say $1 $mta.name($1,$3) $+ , du wurdest gewarnt jetzt ist es aus!
     mta.kick $1 $3
     unset %killed [ $+ [ $2 ] ]
     }
 else {
   mta.say $1 $mta.name($1,%killed [ $+ [ $2 ] ]) $+ , Du bekommst eine Warnung wegen Killen im STUNT Modus
   unset %killed [ $+ [ $2 ] ]
   }
 }
}

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 == lagger || $3 == lagga) {
   mta.slap $1 $2
   mta.say $1 $mta.name($1,$2) stop crying
 }
} 
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 !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 == !rules) && TLR isin $mta.name($1,$2) {
  if ($4 != $null) { 
    mta.msg $1 $2 $mta.name($1,$4) Don't brake theese rules!!!
    .timer 1 3 mta.msg $1 $2 No Cheating or Modding
    .timer 1 4 mta.msg $1 $2 No Bitchen
    .timer 1 5 mta.msg $1 $2 No Lamas
    .timer 1 6 mta.msg $1 $2 No Puasing
    .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
 }
 else {
  if ($3 == !rules) { 
    mta.msg $1 $2 TLR-Server Rules
    .timer 1 3 mta.msg $1 $2 No Cheating or Modding
    .timer 1 4 mta.msg $1 $2 No Bitchen
    .timer 1 5 mta.msg $1 $2 No Lamas
    .timer 1 6 mta.msg $1 $2 No Puasing
    .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
 }
} 
elseif (!tlr == $3) { 
 mta.msg $1 $2 The Last Resort Clan, Please visit www.tlr-clan.co.uk for more info.
 }
} 
elseif (!join == $3) { 
 mta.msg $1 $2 The Last Resort Clan, Please visit www.tlr-clan.co.uk for more info.
 }
} 
alias clanban { 
 var %a = 0 
 while (%a < 32) { 
   if ($4 isin $mta.name($1,%a)) mta.ban $1 %a 
   !inc %a 
 } 
}

can someone fix my script please, its proberly a simple problem :oops:.

BTW

}
elseif ($3 == !rules) && TLR isin $mta.name($1,$2) {
  if ($4 != $null) { 
    mta.msg $1 $2 $mta.name($1,$4) Don't brake theese rules!!!
    .timer 1 3 mta.msg $1 $2 No Cheating or Modding
    .timer 1 4 mta.msg $1 $2 No Bitchen
    .timer 1 5 mta.msg $1 $2 No Lamas
    .timer 1 6 mta.msg $1 $2 No Puasing
    .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
 }
 else {
  if ($3 == !rules) { 
    mta.msg $1 $2 TLR-Server Rules
    .timer 1 3 mta.msg $1 $2 No Cheating or Modding
    .timer 1 4 mta.msg $1 $2 No Bitchen
    .timer 1 5 mta.msg $1 $2 No Lamas
    .timer 1 6 mta.msg $1 $2 No Puasing
    .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
 }

i think thats the broken bit :roll:

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 == lagger || $3 == lagga) {
   mta.slap $1 $2
   mta.say $1 $mta.name($1,$2) stop crying
 }
}
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 !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 == !rules) && TLR isin $mta.name($1,$2) {
   if ($4 != $null) {
     mta.msg $1 $4 $mta.name($1,$4) Don't brake theese rules!!!
     .timer 1 3 mta.msg $1 $2 No Cheating or Modding
     .timer 1 4 mta.msg $1 $2 No Bitchen
     .timer 1 5 mta.msg $1 $2 No Lamas
     .timer 1 6 mta.msg $1 $2 No Puasing
     .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
   }
   else {
     mta.msg $1 $2 TLR-Server Rules
     .timer 1 3 mta.msg $1 $2 No Cheating or Modding
     .timer 1 4 mta.msg $1 $2 No Bitchen
     .timer 1 5 mta.msg $1 $2 No Lamas
     .timer 1 6 mta.msg $1 $2 No Puasing
     .timer 1 7 mta.msg $1 $2 Brake Theese Rules Face Kick or Ban!
   }
 }
 elseif (!tlr == $3) {
   mta.msg $1 $2 The Last Resort Clan, Please visit www.tlr-clan.co.uk for more info.
 }
}
elseif (!join == $3) {
 mta.msg $1 $2 The Last Resort Clan, Please visit www.tlr-clan.co.uk for more info.
}
alias clanban {
 var %a = 0
 while (%a < 32) {
   if ($4 isin $mta.name($1,%a)) mta.ban $1 %a
   !inc %a
 }
}

Yes that was the problem, you dont need an 'else {' where it was.

Plus,

else {
  if ($3 == !rules) {

You would only need an if ($3 == !rules) { if you wanted an elseif, but in this case you dont need it. It would be elseif or just else {.

Also, you don't always need 2 '}' after a script. You only need 2 '}' if there are 2 '{' opening the script. You would also need 2 '}' when you finish in that alias.

Link to comment
Why doesn't work this code?

Ive testet it but it won't work!

Please help me

alias mta.join {
/set %warn [ $+ [ $2 ] ] 0
}
alias mta.kill {
 if  ( $3 != $2 ) {
     /set %killed [ $+ [ $2 ] ] $3
     mta.say $1 $mta.name($1,$2) $+ , du kannst  $mta.name($1,$3) vergeben indem du !forgive $3 eintippst in 10 Sekunden
     timer.k 1 10 mta.killer $1 $2 $3
 }
}
alias mta.text {
 if ( ( $3 == !forgive ) && ( $4 != $null ) ) {
   if ( $4 == %killed [ $+ [ $2 ] ]) {
     unset %killed [ $+ [ $2 ] ]
     timer.k off
     mta.say $1 $mta.name($1,$2) vergibt dem Killer
     }
   }
 if  ( $3 == !warning ) {
   if ( ( $4 == $null ) || ( $4 isalpha ) ) {
     mta.say $1 $mta.name($1,$2) $+ , du hast %warn [ $+ [ $2 ] ] Verwarnung(en)
     mta.say $1 Wenn du noch $calc( 3 - %warn [ $+ [ $2 ] ] ) bekommst wirst du gekickt!
     }
   else mta.say $1 $mta.name($1,$4) hat %warn [ $+ [ $4 ] ] Verwarnungen!
 }
}
alias mta.killer {
 if ( %killed [ $+ [ $2 ] ] != $null ) {
   inc %warn [ $+ [ $3 ] ]
   if ( %warn [ $+ [ $3 ] ] == 3 ) {
     mta.say $1 $mta.name($1,$3) $+ , du wurdest gewarnt jetzt ist es aus!
     mta.kick $1 $3
     unset %killed [ $+ [ $2 ] ]
     }
 else {
   mta.say $1 $mta.name($1,%killed [ $+ [ $2 ] ]) $+ , Du bekommst eine Warnung wegen Killen im STUNT Modus
   unset %killed [ $+ [ $2 ] ]
   }
 }
}

Why does my script not work it says UNKNOWN instead of the nick of the killer

Link to comment

You would only need an if ($3 == !rules) { if you wanted an elseif, but in this case you dont need it. It would be elseif or just else {.

Also, you don't always need 2 '}' after a script. You only need 2 '}' if there are 2 '{' opening the script. You would also need 2 '}' when you finish in that alias.

yea thx dan works fine now, and has anyone got a reload script? i got to page 50 in this thread and got bored :roll:

Link to comment

my guess at a 1st glance is replace this:

timer.k 1 10 mta.killer $1 $2 $3

with this:

!.timer.k 1 10 mta.killer $1-

note, this script only would work at 1 server at a time and would have consequences on other connected servers.

Link to comment

In case this question has been posted before... I'm very sorry... I've read about 20 pages here and got bored. :oops:

Are there any good scripting tutorials out there ? I mean for mtama, not for mirc scripting in general. Or some sort of a variable list !?

I've found out that in mta.kill:

$1 = server

$2 = killed id

$3 = killer id

$4 = weapon id

What about the other aliases ? I really would like to make my own scripts, it seems like fun. I just don't know very well how to begin. :cry:

Any help greatly appreciated !

Link to comment
In case this question has been posted before... I'm very sorry... I've read about 20 pages here and got bored. :oops:

Are there any good scripting tutorials out there ? I mean for mtama, not for mirc scripting in general. Or some sort of a variable list !?

I've found out that in mta.kill:

$1 = server

$2 = killed id

$3 = killer id

$4 = weapon id

What about the other aliases ? I really would like to make my own scripts, it seems like fun. I just don't know very well how to begin. :cry:

Any help greatly appreciated !

Well ever had a plan to read scripting.html ?

I leave the feellings about this Q. behind....

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

    • No registered users viewing this page.

×
×
  • Create New...