Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. yeah i noticed.... Lil'San^,^u<3 Experienced Posts: 666 Joined: Fri Mar 30, 2007 11:27 Scooby BetaTeam Posts: 600 Joined: Sun Apr 25, 2004 11:34 ive made 600 posts in 43 months and u.. 666 in less than 8.... just shows u how much of a spammer u are lol i'll wait for ur new link then to check out ur progress. u could add ur universal translator to it too
  2. Scooby

    !tempBan script

    actually i spotted a small bug here var %bantime = $iif($5 !isnum,30,$iif($5 > 1,$5)) replace the line with this: var %bantime = $iif($5 !isnum,30,$iif($5 > 1,$5,30)) sry
  3. Dont mean to be picky, but i just took a look at ur script, u should fix the 'if's in it really 'if > elseif > else' and also, the spacing could be better - try loading it into mirc and clicking the { } button, it will repspace it all properly. i only took a quick glance. cant really tell much since the spacing is a mess. nice to see u eventually released 'something' tho, even if it is for something that almost noone uses anymore
  4. Scooby

    !tempBan script

    ok since i dont know what kind of script/login u have, i'll leave the level part out, it can be added whenever... on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,$4) == -1,-1,$v1)) if ($3 == !tban) && ($mta.name($1,$2) == YOURNAME) { if (%a == $2) mta.msg $1 $2 Error, Cannot Ban Self elseif (%a == -1) mta.msg $1 $2 Error, Invalid Name/ID else { var %bantime = $iif($5 !isnum,30,$iif($5 > 1,$5)) mta.say $1 $mta.name($1,$2) Is Tempbanning $mta.name($1,%a) For %bantime Mins. .timer $+ $mta.name($1,%a) 1 $calc(%bantime * 60) mta.unban $1 $mta.ip($1,%a) mta.ban $1 %a } } } !tban - bans player for 30mins !tban - bans player for specified time in minutes. this is just something quick, Note: if u ban someone then switch off mirc, they will stay banned. i havent tested this, so any probs just post here and i will get back to u asap.
  5. the Mode's are stored in Prsstats.txt along with a few other minor things. (located in ur main mIRC dir.) if u remove/move/delete all the .txt files apart from this one, then restart mirc, all new empty files will be created, except the map modes. to be safe, make a backup of all ur .txt files then if u do encounter any problems u still have ur files. all files are located in ur main mirc dir.
  6. Sry, Error on last line alias mta.level !return $iif($readini($scriptdiradmin.ini,name,$mta.name($1,$2)) == $null,0,$v1) sorted on msn.
  7. ok, here goes. this script should work for anyone else who needs it. just paste into a .mrc file and load it with mirc. on *:SIGNAL:mta.connect: { .timershowtext 0 600 showtext $1 } alias showtext { if ($mta.server($1).players > 1) mta.text $1 Report cheaters to an admin with !report } alias get.playerid { if ($3 == $null) !return $2 var %a = 0 while (%a < $mta.server($1).cmax) { if ($3 isin $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command: { var %a = $get.playerid($1,$2,$4) if ($3 == !report) { if (!$4) { mta.pm $1 $2 To report a cheater/modder .timer 1 1 mta.pm $1 $2 type !report <name> <reason> } else reportplayer $1 $2 %a $5- } elseif ($3 == !banip) banip $1 $4 elseif ($3 == !unbanip) unbanip $1 $4 elseif ($3 == !shownewmsg) shownewmsg $1- elseif ($3 == !showoldmsg) showoldmsg $1- elseif ($3 == !reports) mta.pm $1 $2 Total Reports - New: $totalnewmsgs - Old: $totaloldmsgs elseif ($3 == !remold) deletereports $1 $2 Old elseif ($3 == !remnew) deletereports $1 $2 New elseif ($3 == !remall) deletereports $1 $2 All elseif ($3 == !extra) extra $1 $2 } alias deletereports { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: level 5 Command else { if ($3 == new) !remini -n " $+ $scriptdirReports.ini" newmsg elseif ($3 == old) !remini -n " $+ $scriptdirReports.ini" oldmsg else !remove " $+ $scriptdirReports.ini" mta.pm $1 $2 $iif($3 == all,All Msgs Removed.,All $3 Msgs Removed.) } } alias reportplayer { if (!$4) mta.pm $1 $2 Error: Specify Reason, !report <name> <reason> elseif ($2 == $3) mta.pm $1 $2 Error: Cannot Report Self elseif ($3 == -1) mta.pm $1 $2 Error: No Such Player else { !writeini -n " $+ $scriptdirReports.ini" newmsg $calc($totalnewmsgs + 1) $mta.nick($1,$2) $+ ( $+ $mta.ip($1,$2) $+ ) Reported $mta.nick($1,$3) $+ ( $+ $mta.ip($1,$3) $+ ) - Reason: $4- mta.pm $1 $2 $mta.nick($1,$3) Reported. } } alias banip { if ($mta.level($1,$2) > 0) { if (*.*.*.* isin $4) { mta.addban $1 $4 mta.pm $1 $2 The IP $4 Is Now banned. } } else mta.pm $1 $2 Admins Only } alias unbanip { if ($mta.level($1,$2) > 0) { if (*.*.*.* isin $4) { mta.unban $1 $4 mta.pm $1 $2 The IP $4 Is Now Unbanned. } } else mta.pm $1 $2 Admins Only } alias totalnewmsgs !return $iif($ini($scriptdirreports.ini,newmsg,0) == $null,0,$v1) alias totaloldmsgs !return $iif($ini($scriptdirreports.ini,oldmsg,0) == $null,0,$v1) on *:SIGNAL:mta.login: { if ($4 == 0) { .timer 1 5 mta.pm $1 $2 You Have $iif($totalnewmsgs == 0,No,$v1) New $iif($totalnewmsgs == 1,Message,Messages) if ($totalnewmsgs != 0) .timer 1 8 mta.pm $1 $2 type !shownewmsg to see the next message in order. .timer 1 30 mta.pm $1 $2 type !extra to see extra commands. } } alias extra { var %a == $mta.level($1,$2) mta.pm $1 $2 Extra Commands: !report $iif(%a > 0,!reports !shownewmsg !showoldmsg !banip !unbanip) if (%a > 0) .timer 1 5 mta.pm $1 $2 !remold !remnew !remall } alias shownewmsg { if ($mta.level($1,$2) > 0) { if ($totalnewmsgs == 0) mta.pm $1 $2 No New Messages else { !writeini -n " $+ $scriptdirReports.ini" oldmsg $calc($totaloldmsgs + 1) $readini($scriptdirReports.ini,newmsg,$totalnewmsgs) mta.pm $1 $2 Msg: $readini($scriptdirReports.ini,newmsg,$totalnewmsgs) !remini -n " $+ $scriptdirReports.ini" newmsg $totalnewmsgs } } else mta.pm $1 $2 Admins Only! } alias showoldmsg { if ($mta.level($1,$2) > 0) { if (($4 isnum) && ($4 > 0) && ($4 <= $totaloldmsgs)) mta.pm $1 $2 MSG No. $+ $4 $+ : $readini($scriptdirReports.ini,oldmsg,$4) else { mta.pm $1 $2 Total Old Msgs: $totaloldmsgs if ($totaloldmsgs > 0) .timer 1 1 mta.pm $1 $2 type !showoldmsg $iif($totaloldmsgs == 1,1,<1- $+ $totaloldmsgs $+ >) } } else mta.pm $1 $2 Admins Only! } general commands are listed in the script but heres a quick rundown: !report - for anyone to report a player - records users name+IP, reported players name+ip and reason !banip - for an admin to ban an ip !unbanip - for an admin to unban an ip !shownewmsg - to view new reports !showoldmsg - to view selected old reports !reports - to show how many reports are stored, new and old !remold - to remove all old reports !remnew - to remove all new reports !remall - to remove all new and old reports !extra - to list the extra commands listed here. any probs, post here. hope this is ok for u.
  8. Ok, Try this: On *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !id) mta.say $1 $mta.name($1,%a) $+ 's Id: %a elseif ($3 == !bot) { mta.msg $1 $2 To spawn cars type this exactly: (!sp <Your Name> <Car Name/ID>) mta.msg $1 $2 To Teleport Type This exactly (!tp <your Name> <Person's Name>) mta.msg $1 $2 To spawn weapon's type this exactly (!wep <your Name> <Weapon Name/ID>) } elseif ($3 == ![FFC]) mta.say $1 Flippin Foes Clan elseif ($3 == ![GN]) mta.say $1 Green Nova's elseif ($3 == !info) mta.say $1 [FFC]Basic v1 By.[FFC]Foo elseif ($3 == !commands) mta.say $1 Public Commands: !sp,!tp,!bot,![FFC],![GN],!info,!id,!wep elseif ($3 == !members) { mta.msg $1 $2 [FFC] Member's mta.msg $1 $2 [FFC]Foo,[FFC]Foohy,[FFC]akia14 mta.msg $1 $2 [FFC]Big_Rod,[FFC]quake,[FFC]Gimp } elseif ($3 == !bored) mta.say $1 $mta.name($1,$2) is bored! ;start of admin/members commands elseif ($mta.level($1,$2) > 0) { if ($3 == !slap) mta.slap $1 %a elseif ($3 == !kill) .timer 6 0 mta.slap $1 %a elseif ($mta.level($1,$2) >= 4) { if ($3 == !kick) mta.kick $1 %a elseif ($3 == !ck) { if ($mta.status($1,%a) != 2) mta.msg $1 $2 Player is not ingame. elseif ($mta.vehicle($1,%a).name != foot) mta.msg $1 $2 Player is not on foot. elseif ($mta.health($1,%a) <= 20) mta.msg $1 $2 Player does not have enough health. else { var %hp = $mta.health($1,%a) mta.say $1 Checking $mta.name($1,%a) for HP hacks ... mta.slap $1 %a if ($mta.health($1,%a) >= %hp) mta.say $1 WARNING: HP Cheats found on: $mta.name($1,$2) else mta.say $1 No HP cheats found on $mta.name($1,$2) } } elseif ($3 == !ban) { if ($2 == %a) mta.pm $1 $2 Error: Cannot ban self! else { mta.say $1 $mta.name($1,$2) Has Banned $mta.name($1,%a) $iif($5 != $null,Reason: $5-) mta.ban $1 %a } } } } } alias mta.level !return $iif($scriptdiradmin.ini name $mta.name($1,$2) == $null,0,$v1) i had to alter a few things since some of tht script had parts missing - it was taken from grs but some was missing. also, since u have no admin login script, i made it so it reads a file. u will need to create the file, called 'admin.ini' and put it in the same location/dir as ur script. then inside, u need to add the admins, it should look like this: [name] yourname=10 yourfriendsname=5 yourotherfriendsname=3 That should keep u going for a day or two all being well. if u have anymore probs and need a quicker answer, add my msn. [email protected] sorry im not able to test it, i dont have mtama 4.15 handy. fingers crossed that its all ok tho
  9. did u add the } where i said??? repost ur script. this alone wont work: 1. On *:SIGNAL:mta.command:{ 2. elseif (($3 == !kill) && ($mta.name($1,$2) == [FFC]Foo)) .timer 6 0 mta.slap $1 %a 1, there is no line defining variable %a and 2, the final } is missing. repost the original version with the changes i mentioned.
  10. ok, ive finished writing it, im gonna get a friend to test it first tho before i post it. i dont have mtama on this pc so i cant check it properly. i'll post it later once tested.
  11. yeah, just put ur name in where it says.
  12. hi, u look like youve been busy and i guess by now ur probably pulling ur hair out trying to make this. im working at the moment, but when i get online later, i'll write this for u (since it will be much faster than trying to explain) coz i can tell u have no idea what ur doing. 10/10 for effort tho.
  13. between line 37 and 38 add another } that will get it working. if u have no login/admin system, change this part. elseif ($3 == !kill) { if ($mta.level($1,$2) >= 1) { mta.slap $1 %a mta.slap $1 %a mta.slap $1 %a mta.slap $1 %a mta.slap $1 %a mta.slap $1 %a } } to elseif (($3 == !kill) && ($mta.name($1,$2) == YOURNAME)) .timer 6 0 mta.slap $1 %a
  14. Scooby

    !new in GUS

    why dont u just use a script with all these things in, instead of us making the same commands all over again to run in gus.... just doesnt make sense... it would have been 100 times faster to just write an alias to import all ur current stats into a new script if thats what ur worried about, gus has nothing in comparison to the stuff packed into prs and slr, yet u want us to make all the commands from our scripts to run in gus which isnt really active and which, lets be honest, isnt too great.
  15. Scooby

    !new in GUS

    just reading thru, just wanted to point out bart, its best to write the id, not nick, since the id's never change, but nick's do.
  16. 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.
  17. That should be enough. did u get them to work? (i can see u got the updater to work) but did u get any of the normal commands from the slr script to work?
  18. ok, well its easily done, but probably quicker just to rewrite it, not that its that big anyway.
  19. all in 1 go.. i wouldnt have written it that way, but thats how Bart has done it
  20. seems i found a few more bugs:P i rewrote parts, try this: on *:SIGNAL:mta.connect { !.timerremini 0 1800 remstuff $1 } alias remstuff { !remini -n slrtemp.ini played mta.text $1 Disabled Maps Have Been Re-enabled! } on *:SIGNAL:mta.command { if ($3 == !limit) { if ($mta.level($1,$2) < 4) mta.pm $1 $2 Error: Incorrect Level elseif (!$4) mta.text $1 Current Limit: $slr.limit($1) - Last 30min Usage: $slr.temp($1) elseif ($4 !isnum) mta.pm $1 $2 Error: !limit <amount> else { mta.text $1 $mta.nick($1,$2) Changed $mta.race($1) $+ s Limit From: $slr.limit($1) To $4 !writeini -n slrlimit.ini Maplimit $replace($mta.race($1),$chr(32),%) $4 } } } on *:SIGNAL:mta.startrace: { !writeini -n slrtemp.ini played $replace($mta.race($1),$chr(32),%) $calc($slr.temp($1) + 1) if ($slr.temp($1) > $slr.limit($1)) { mta.text $1 Starting A Random Map - Reason: Map Limit Reached, Disabled For 30 mins. mta.startrace $1 $rand(0,$mta.races($1)) } } alias slr.limit !return $iif($readini(slrlimit.ini,Maplimit,$replace($mta.race($1),$chr(32),%)) == $null,3,$v1) alias slr.temp !return $iif($readini(slrtemp.ini,played,$replace($mta.race($1),$chr(32),%)) == $null,0,$v1)
  21. well at a quick galance, the last 2 aliases, the single liners, have $iff instead of $iif so the script wont work:P also, i see tons of junk that can be removed from it, apart from that it should work if u alter those 2 mistakes.
  22. lol ok np
  23. i dont see why anyone would want to merge 2 or 3 full scripts like that. pick one, then if u need more commands, add them, either to that script (if u know how) or run them alongside in another .mrc file.
  24. u said u had prs 1.3, is it loaded?
  25. The script only removes the played maps ini every 30 mins as a whole, it would be better if it removed them individually after 30 mins, then all maps have to wait the 30 mins. i dont browse down the forum that often, if u had asked me, or asked in the prs topic (where i get an email when people post), i would have made it for u.
×
×
  • Create New...