Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. what i find rather funny is how well the script works for everyone, yet for u, and one other person... all u have is problems. im wondering if maybe its not the script but the user:P i just dont see how it can work perfectly on all the servers i monitor, yet for u, u have problem after problem. im kinda unsure how u can restart the script, it shows its restarted, but fails to work... and like i said b4, im quite happy to help u fix any problems... tell me what server, and i'll come check it out. coz all these problems ur saying, they just dont happen on any of the servers i run the script on.
  2. Scooby

    !findmap

    hmmm thx... but i think i'll stick the the short version $mta.races($1,wildcard)
  3. House, if u use 'var' instead of 'set', for most of those commands, then u dont need to set (store) the variables, then unset them, it will work a lot faster.
  4. it says that when u connect... thats not a fault what commands cant u use? to bring up the dialog, type /prs into ur mirc status window.
  5. if a spammer spams ur server, it will usually crash the server and time out all the players, ur script will time out too, when it reconnects, the commands wont continue coz they dont store. u cant stop the spammer coz like u said, its about 100 lines of text instantly. i dont have and havent seen the latest in action, so im not really sure how to make a fix. i just know in VC there was nothing we could do. i wasnt aware it worked in SA because the way mtama only allows a few lines per second.. but u guys say it does so theres that out the window lol. if anyone has this bot, gimmie a shout and i'll have a go at making a fix of some kind, dont hold ur breath tho, if its like the one in VC, the speed the text comes at is way too fast for mirc to detect.
  6. ok, i'll have a look later and see what i can find:P
  7. !alias works fine for everyone else, maybe u have an earlier version, i think there was a bug with the !alias command, when i first replaced it, but its fixed now. As for the points... no idea. i'll keep an eye on it.
  8. ahh i see, we saw similar porgs in 0.5 too. crashes everyone then kills the server. theres not much u can do about it. just keep an eye on his IP and see how much its changing, when u find a pattern, it might be easier to detect suspects.
  9. what is that? if thats the chat then where is the response from the script? You could try adding this to the top of mta.command: spamcheck $1 $2 then add this alias: alias spamcheck { var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) !hadd prstemp $2 %a if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! elseif (%a == 4) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } !hadd -u2 prstemp $2 %a } theres not much u can else do about it sadly. depends how much his IP changes. we've had problems like this since mta came out.
  10. Scooby

    help

    u could always try looking or using search anyways... have a read at this post... http://forum.mtavc.com/viewtopic.php?p=250707#250707 this should keep u going for a while
  11. u mean only 1 admin allowed to use it? there are a few ways, u can add ur name to the command line, eg: if (($3 == !transfer) && ($mta.nick($1,$2) == YOURNICK)) pgs.transfer $1- this is an easy way to make any command only work for 1 person, so if u need to change any others, u would do it this way^ or u can change it in the alias. replace the alias with this: alias pgs.transfer { var %a = $iif($hget(pgscash,$4) == $null,0,$v1) if ($mta.nick($1,$2) != YOURNICK) insuf $1 $2 elseif (($4 == $null) || ($5 == $null) || ($6 == $null) || ($6 !isnum)) { mta.pm $1 $2 Type: !transfer mta.pm $1 $2 Use Exact names, no wildcards! mta.pm $1 $2 Sends Cash From Nick1 to Nick2. } elseif ($calc(%a - $6) < 0) mta.pm $1 $2 Error $4 $+ 's Cash: $ $+ %a else { pgs.sub $4 $6 pgs.add $5 $6 mta.text $1 $mta.nick($1,$2) Transfered $ $+ $6 From $4 To $5 } } both methods would work. as for the warning thing, i guess so, but it would mean saving every reason individually, not so good if u have it set to 10 warns:P but yeah... u could modify it to save the warnings. i didnt add it coz i didnt see the point. half the time people dont give a reason. and if its coz u want to know why/who was warned for what, then they can make up any reason... so its not much use:P
  12. No, u cant PM anyone not in the server.
  13. hmm ok well i looked again and i did find 1 small error, its to do with !unregister. line 391: !hdel pgs.items register $+ $mta.nick($1,%a) should be: !hdel pgsitems register $+ $mta.nick($1,%a) u can change this yourself... maybe this will help link updated.
  14. hehe guess i never tried that... ok im with u now, i'll see what i can do. leave it with me... im sure its nothing major. **EDIT** ok ive checked this and got i a few people to test this for me too, But it all seems to work perfectly for us all, so i have no idea, heres what we tried: i joined as 'player1', registerd the ip (static) then changed to another name. then got other players to change to 'player1' and it said the warning that their ip didnt match etc. then i rejoined as 'player1' and it worked fine for me. so my cash as 'player1' is now only usable by me. id this what u mean? coz if so, i have no idea why urs doesnt work. its stored like name=ip, so if u registered 10 names, it still wouldnt matter. also the warning pm is sent on nickchange, it asks 'is name stored', if the name has been registered, then no one can use it without the PM showing unless the IP matches. maybe whoever u tested it with registered then name? try using !unregister they must be in the server at the time so get some1 to join as that name. then u can unregister it.
  15. u want to upload files from one pc's mirc to the pc hosting ur script/server's mirc into the scriptdir ??? what files could u possible want to upload??? use some kind of remote access. much quicker
  16. no idea what u mean sorry if u register ur ip, then it stops any other IP using your name. you can use other names? but other people using ur name cant touch ur cash. im sorry if its not right, i didnt test it much, coz it seemed ok when i tried. i'll have a look into it later tho.
  17. not really sure why u would need to reload the script but here. ;Add ur IRC channel name below on *:TEXT:!*:#MYCHANNEL:{ ;add ur nick in the place below. if (($1 == !restartscript) && ($nick == YOURNICK)) { ;change the 1 below for ur serverID (tab) mta.disconnect 1 .timer 1 3 mta.connect 1 ;Add ur IRC channel name below !msg #MYCHANNEL Script Restarting. !.reload -rs $+(",$script,") } } make sure u add this into the main script u need reloading, or it will only reload the current script, instead of ur main script.
  18. so u want a command to use from IRC, to restart the script. easy enough. Add this to the IRC running the scripts and IRC channel. ;Add ur IRC channel name below on *:TEXT:!*:#MYCHANNEL:{ ;add ur nick in the place below. if (($1 == !restartscript) && ($nick == YOURNICK)) { ;change the 1 below for ur serverID (tab) mta.disconnect 1 .timer 1 3 mta.connect 1 ;Add ur IRC channel name below !msg #MYCHANNEL Script Restarting. } } once u get it working, u can remove the lines beginning with a semicolon. ; hope this is what u meant anyway lol np if its not.
  19. [quote name={}Sebicool]When you have GUS you can do "!setlevel " to give a GUS Admin, or you can try this but im not sure that it´s work : on *:SIGNAL:mta.command: { if ($3 == !admins) || ($3 == !admin) $rconadmins($1) alias rconadmins { var %a = 0,%admins = None while (%a < $mta.server($1).cmax) { if (%admins == None) %admins = $mta.nick($1,%a) - $mta.level($1,%a) else %admins = %admins $+ , $mta.nick($1,%a) - $mta.level($1,%a) } !inc %a } mta.text $1 Online Admins: %admins $+ ! } Hmm looks familier.... wont work either so dont bother trying it. it should look something like: on *:SIGNAL:mta.command: { if (!admin* iswm $3) admincount $1- } alias admincount { var %a = 0, %b = None while (%a < $mta.server($1).cmax) { if ($mta.nick($1,%a) != $null) { if ($mta.level($1,%a) > 0) { if (%b == None) %b = $mta.nick($1,%a) $+ ( $+ $mta.level($1,%a) $+ ) else %b = %b $+ , $mta.nick($1,%a) $+ ( $+ $mta.level($1,%a) $+ ) } } !inc %a } mta.text $1 Current Admins: %b $+ . } This was how it looked before u broke it...
  20. Scooby

    MTA:MA Scripting

    sure: on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$mta.getid($1,$4)) if ($3 = !test) mta.say $1 this is a test message elseif ($3 == !hp) { if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID else mta.say $1 $mta.name($1,%a) $+ 's Health: $mta.health($1,%a) $+ % } elseif ($3 == !id) { if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID else mta.say $1 $mta.name($1,%a) $+ 's ID: %a } elseif ($3 == !ban) { if ($mta.name($1,$2) == YOUR_NAME) { if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID elseif (%a == $2) mta.msg $1 $2 Error: Cannot Ban Self else { mta.say $1 $mta.name($1,$2) Is Banning $mta.name($1,%a) - Reason: $iif($5 == $null,None,$5-) mta.ban $1 %a $5- } } else mta.msg $1 $2 Error: Admin Only. } } Replace YOUR_NAME, with ur name this is just basic since i dont know what u have already.
  21. Scooby

    MTA:MA Scripting

    on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$mta.getid($1,$4)) if ($3 = !test) mta.say $1 this is a test message elseif ($3 == !hp) { if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID else mta.say $1 $mta.name($1,%a) $+ 's Health: $mta.health($1,%a) $+ % } elseif ($3 == !id) { if (%a == -1) mta.msg $1 $2 Error: Invalid Name/ID else mta.say $1 $mta.name($1,%a) $+ 's ID: %a } } there u go. Also, if ur still interested, have a read of my post here>>> http://forum.mtavc.com/viewtopic.php?p=250707#250707
  22. Scooby

    slap script

    It looks like it asks u when u load the script up.
  23. level 5 is the highest. so if ur a level 5 and u try to use a command on another level 5, it will give an error. doing any command on yourself wont work, eg: !sftu, this is the same as me doing: !stfu scooby This prevents u from accidentally doing things to yourself. the command will work if u give a valid name tho.
×
×
  • Create New...