janipewter Posted October 2, 2004 Posted October 2, 2004 k, another script now. im looking for one for alias mta.kill (obviously) which would say <[killers name] just owned [killed persons name]> or something is this possible?
Oli Posted October 2, 2004 Posted October 2, 2004 alias mta.kill { mta.say $1 $mta.name($1,$3) just owned $mta.name($1,$2) }
andeh Posted October 3, 2004 Posted October 3, 2004 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
Oli Posted October 3, 2004 Posted October 3, 2004 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 } }
janipewter Posted October 3, 2004 Posted October 3, 2004 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 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?
Guest Posted October 3, 2004 Posted October 3, 2004 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]
Oli Posted October 3, 2004 Posted October 3, 2004 that quite simply wont work... its completely screwed...
Shib Posted October 4, 2004 Posted October 4, 2004 { } lmao ^^ elseif (mta.name($1,$2) < n00bish) mta.say $1 YoU DiDnT BeaT Me YoU hAcKer n00b. mta.say $1 owNed. lol he hasn''t even opened thAT with { this guy needs help
Aeron Posted October 4, 2004 Posted October 4, 2004 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.
MeanpantheR Posted October 5, 2004 Posted October 5, 2004 lmfao just join wid name n00bish now ur set
MTA-Fan Posted October 5, 2004 Posted October 5, 2004 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 ] ] } } }
MTA-Fan Posted October 5, 2004 Posted October 5, 2004 What should the mta.killer alias do? I don't know but if anyone kills he gets the message UNKNOWN has killed...... Why unknown????
andeh Posted October 9, 2004 Posted October 9, 2004 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 . 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
Shib Posted October 10, 2004 Posted October 10, 2004 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.
MTA-Fan Posted October 10, 2004 Posted October 10, 2004 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
Harry Posted October 10, 2004 Posted October 10, 2004 On which line the unknown appears? (What does it say exactly?)
andeh Posted October 10, 2004 Posted October 10, 2004 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
Oli Posted October 10, 2004 Posted October 10, 2004 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.
Shib Posted October 10, 2004 Posted October 10, 2004 Here you go Andy.. if ($3 == !reload && *TLR*Andy isin $mta.name($1,$2)) { mta.say $1 Script reloaded! !reload -rs $+(",$script,") }
Guest Posted October 14, 2004 Posted October 14, 2004 In case this question has been posted before... I'm very sorry... I've read about 20 pages here and got bored. 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. Any help greatly appreciated !
Aeron Posted October 14, 2004 Posted October 14, 2004 In case this question has been posted before... I'm very sorry... I've read about 20 pages here and got bored. 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. Any help greatly appreciated ! Well ever had a plan to read scripting.html ? I leave the feellings about this Q. behind....
Recommended Posts