Danboi Posted November 6, 2007 Posted November 6, 2007 would someone be kind to help me, been searching high and low for this
[UVA]Bart Posted November 7, 2007 Posted November 7, 2007 on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !ban) slr.baning $1- } alias slr.unbann !return $readini(24hban.ini,24hourban,24) alias slr.unban { if ($slr.unban($1,%a) != $null) { !timer 1 86400 mta.unban $1 $slr.unbann($1,%a) mta.text $1 Unbanning $slr.unbann($1,%a) in 24h - 86400secs } } alias slr.baning { var %a = $iif(($4 == $null),$2,$iif(($slr.id($1,$4) == $null),$2,$v1)) if ($4 == $null) mta.pm $1 $2 Error: !ban <nick or id> else { if ($mta.level($1,$2) < 4) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) >= 4) mta.ban $1 %a !writeini -n 24hban.ini 24hourban 24 $mta.nick($1,%a) slr.unban $1- } }
Danboi Posted November 7, 2007 Author Posted November 7, 2007 thank you will tell you if i have any problems
SanZoR Posted November 7, 2007 Posted November 7, 2007 Omg, this works only with SLR system, and he asked it for GUS And these are also wrong: gus has no mta.level there is few missing aliases: slr.id and slr.inco
[UVA]Bart Posted November 8, 2007 Posted November 8, 2007 stfu! lil^san you are really winding me up now slight mistake, unlike what you promised people and didnt deliver the script, not even now! here try this mate on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !ban) slr.baning $1- } alias slr.unbann !return $readini(24hban.ini,24hourban,24) alias slr.unban { if ($slr.unban($1,%a) != $null) { !timer 1 86400 mta.unban $1 $slr.unbann($1,%a) mta.text $1 Unbanning $slr.unbann($1,%a) in 24h - 86400secs } } alias slr.baning { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($4 == $null) mta.pm $1 $2 Error: !ban <nick or id> else { if ($gus.level($1,$2) < 4) mta.pm $1 $2 Error: to use this command you need to be level 4 your level: $gus.level($1,$2) if ($gus.level($1,$2) >= 4) mta.ban $1 %a !writeini -n 24hban.ini 24hourban 24 $mta.nick($1,%a) slr.unban $1- }
lil Toady Posted November 9, 2007 Posted November 9, 2007 gus has no mta.level That's mta:ma default command..
SanZoR Posted November 9, 2007 Posted November 9, 2007 stfu! lil^san you are really winding me up now slight mistake, unlike what you promised people and didnt deliver the script, not even now!here try this mate on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !ban) slr.baning $1- } alias slr.unbann !return $readini(24hban.ini,24hourban,24) alias slr.unban { if ($slr.unban($1,%a) != $null) { !timer 1 86400 mta.unban $1 $slr.unbann($1,%a) mta.text $1 Unbanning $slr.unbann($1,%a) in 24h - 86400secs } } alias slr.baning { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($4 == $null) mta.pm $1 $2 Error: !ban <nick or id> else { if ($gus.level($1,$2) < 4) mta.pm $1 $2 Error: to use this command you need to be level 4 your level: $gus.level($1,$2) if ($gus.level($1,$2) >= 4) mta.ban $1 %a !writeini -n 24hban.ini 24hourban 24 $mta.nick($1,%a) slr.unban $1- } Well, maybe im not best scripter in these forums, but these were very basic mistakes, what i also have done. As you can see, i just reported about missing aliases and stuff... I didnt said that you sucks or you are bad scripter. It was just constructive message. EDIT: There is still very little mistake, ban for level 4. Its usually for level 7, 8, 9 or 10. So, on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !ban) slr.baning $1- } alias slr.unbann !return $readini(24hban.ini,24hourban,24) alias slr.unban { if ($slr.unban($1,%a) != $null) { !timer 1 86400 mta.unban $1 $slr.unbann($1,%a) mta.text $1 Unbanning $slr.unbann($1,%a) in 24h - 86400secs } } alias slr.baning { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($4 == $null) mta.pm $1 $2 Error: !ban <nick or id> else { if ($gus.level($1,$2) < 7) mta.pm $1 $2 Error: to use this command you need to be level 7, your level is $gus.level($1,$2) if ($gus.level($1,$2) >= 7) mta.ban $1 %a !writeini -n 24hban.ini 24hourban 24 $mta.nick($1,%a) slr.unban $1- }
lil Toady Posted November 9, 2007 Posted November 9, 2007 OMG YOU CHANGED 4 TO 7, HOW??? YOU ARE SO COOL!! YOU ARE SUCH A GOOD SCRIPTER, NOBODY COULD DO THAT WITHOUT YOU!!!1!1!!!!ONE!!!ONE!!ELEVEN! THNXTHNXTHNXTHNX!!!! I HAVE NO IDEA HOW PEOPLE WERE CHANGING LEVELS FOR THEIR SCRIPTS BEFORE!!!! YOU ARE THE GOD!
[UVA]Bart Posted November 9, 2007 Posted November 9, 2007 Omg lil^san maybe you deserve a place on the betateam for that, or not, again you changed someones script to make it your own. By the way if you didnt know its level 4 for a reason because its only a 24hour ban so its nothing perminant, hence the lowish level !! you need to grow up and do something on your own i belive you been after the team MB's Gus script to use cause you cant even write your own !
Scooby Posted November 10, 2007 Posted November 10, 2007 1 thing u might consider, if ur mirc crashes or gets restarted, the player stays banned.
[UVA]Bart Posted November 11, 2007 Posted November 11, 2007 LUA > MIRC lol want to learn lua but cannot test scripts but on the positive side i have got notepad ++
SanZoR Posted November 11, 2007 Posted November 11, 2007 Omg lil^san maybe you deserve a place on the betateam for that, or not, again you changed someones script to make it your own. By the way if you didnt know its level 4 for a reason because its only a 24hour ban so its nothing perminant, hence the lowish level !! you need to grow up and do something on your own i belive you been after the team MB's Gus script to use cause you cant even write your own ! Omfg, you must be noob! Have i said its mine script! HAVE I?!?!?!? GO FF UR SELF U MUTFKC FCK U!
Danboi Posted November 13, 2007 Author Posted November 13, 2007 only one little thing [sLR] Racer umm well i tried you scripts and they not much use anyway so i think i will have sanzors but it still dont work tho
Brophy Posted November 14, 2007 Posted November 14, 2007 Unless you wanna get banned SanZor, I recommend you refrain from talking to people like that (that goes for everyone else too), if you are going to have a go at them, at least use clean and proper english PS: Dont reply to this, allow this topic to STAY on topic Rant over, soz folks
[UVA]Bart Posted November 14, 2007 Posted November 14, 2007 only one little thing [sLR] Racer umm well i tried you scripts and they not much use anyway so i think i will have sanzors but it still dont work tho the reason why "sanzors" wont work is its because its mine, he changed a few things! like allways. on *:SIGNAL:mta.connect { !timer 0 60 slr.unban $1- } on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !ban) slr.baning $1- } alias slr.unbann !return $readini(24hban.ini,24hourban,24 $+ $mta.nick($1,$2)) alias slr.date !return $readini(24hban.ini,24hourban,$mta.nick($1,$2)) alias slr.unban { if ($slr.unban($1,$2) == banned) && ($slr.date($1,$2) < $date(d)) { !timer 1 86400 mta.unban $1 $slr.unbann($1,$2) !remini -n 24hban.ini 24hourban 24 $+ $mta.nick($1,$2) mta.text $1 Unbanning $slr.unbann($1,$2) in 24h - 86400secs } } alias slr.baning { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($4 == $null) mta.pm $1 $2 Error: !ban <nick or id> elseif ($gus.level($1,$2) < 4) mta.pm $1 $2 Error: to use this command you need to be level 4 your level: $gus.level($1,$2) else { if ($gus.level($1,$2) >= 4) mta.ban $1 %a !writeini -n 24hban.ini 24hourban 24 $+ $mta.nick($1,%a) $mta.nick($1,%a) !writeini -n 24hban.ini 24hourban $mta.nick($1,%a) $date(d) } }
SanZoR Posted November 15, 2007 Posted November 15, 2007 Like allways, huh? Still you think i have said that its mine, but in fact, i havent. Maybe you should get glasses, or maybe you are blind.
Scooby Posted November 15, 2007 Posted November 15, 2007 rather than using $date(d) i think i would be better if u use $ctime, it'll be a lot more accurate. using date, its not really 24hrs, also, if u use $ctime, u could specify the ban duration, it could easily be changed to ban for any specified time. !tban this is what i use in mine, then u can set a default time of 24hrs if no time is specified.
[UVA]Bart Posted November 15, 2007 Posted November 15, 2007 hum interesting point scoob lol made that one at collage then sent it home lol will try one with $ctime when a formatted my other computer that wont play mta for some unknown reason it just flashes random pixels
xGj Posted November 17, 2007 Posted November 17, 2007 I H8 SANZOR he sux How constructive He is so motherfckin right tho. Now go and fckin die or fck off little asswhipe bitch.
[UVA]Bart Posted November 17, 2007 Posted November 17, 2007 CAN A REMIND YOU SANZOR ! Unless you wanna get banned SanZor, I recommend you refrain from talking to people like that (that goes for everyone else too), if you are going to have a go at them, at least use clean and proper englishPS: Dont reply to this, allow this topic to STAY on topic Rant over, soz folks
paul527 Posted November 21, 2007 Posted November 21, 2007 lol, bant SanZor i highly recommend that whenever posting code that has been originally made by another coder, ALWAYS show the EXACT name the original author (no typos on that name!). After that, then explain the changes you made so that you don't make the original author look like a noob if you made any mistakes during your edit to their work. Without showing the original authors name, you will automatically be labeled a "code stealer" right away. The best option would be to asking the original author before posting an edited version of their work. That works out the best if you are able to contact the author first.
Recommended Posts