Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. Scooby

    MTA:MA Scripting

    yes its possible.
  2. Scooby

    Hide text

    thats not the problem, the problem is, PM's cant be sent to yourself or to a player not there. so even if u were alone in the server, it would be impossible to login. in other versions we could use /msg login and the details would be sent to the name 'login' and this would be read by a script and it would work. but in mtasa race, u cant do this. you can only PM other people who are in the server. there is no way to be ignored by all players, only muted, which means u cant type to login
  3. well i had a quick look at the finish alias, and it looks fine. i know its a silly question, but are u sure its turned on? theres an on/off button on the dialog. try turning it off and on again if its on.
  4. yes, but can u edit ur post and repost it with html disabled below, the forum messes the code up otherwise.
  5. Meaning what? There's no errors in Mirc window. open ur script and find: on *:SIGNAL:mta.finish: { lots of lines here } just copy and paste it so i can see if theres an error.
  6. are u getting any errors in ur main mirc window? maybe u broke something else? post ur mta.finish alias and i'll take a look.
  7. well if u removed the 's from the lines, u also need to remove the $+
  8. the part that makes it work was a line in mta.mrc, which u have now replaced. line 1681, my.echo $1-
  9. sounds like uve broke it just unload all ur scripts, load mtama, make sure that works first, if it doesnt, redownload it.
  10. ok the points line would show something like:0 $mta.nick($1,%a) $+ 's Points make sure u still have the 's in the line. as for the points and cash, check your mirc status window and see if it shows any errors at all... if it does, post them and i can help. without knowing what youve changed its kinda hard to help.
  11. hmm ok look in startrace alias and find this: if ($prs.mode($1) == deathmatch) { prs.addalive $1- if ($prs.players($1) == 1) .timershow 1 5 mta.text $1 This Is A Deathmatch Map, Type !new For A New Map. } change it to: if ($prs.mode($1) == deathmatch) { prs.addalive $1- } if ($prs.players($1) > 0) .timershow 1 5 mta.text $1 Dont Like This Map, Type !new For A New Map. the random message alias changeto this: alias randommessage { var %a = $ini(randommessage.ini,msg,0) var %b = $rand(1,%a) if ($prs.players($1) > 0) mta.text $1 $readini(randommessage.ini,msg,%b) } and the lines u added for dissallowing chars should go at the top of alias newnick the whole alias should look like this: alias newnick { var %a = $mta.nick($1,$2),%b = $mta.ip($1,$2),%c = $gettok(%b,1-2,46) if (($chr(33) isin %a) || ($chr(96) isin %a) || ($chr(34) isin %a) || ($chr(94) isin %a) || ($chr(36) isin %a) || ($chr(60) isin %a) || ($chr(62) isin %a) || ($chr(46) isin %a)) { mta.msg $1 $2 Invalid Text In Nick!!! .timer 1 5 mta.kick $1 $2 } if (%a == Player) .timerannoy $+ $2 0 10 mta.pm $1 $2 Choose A Name! Type /nick !hdel pgstemp loggedin $+ $2 if (($prs.clantag($1) isin %a) || ($hget(prswarns,AdminIP $+ %a) != $null)) { prs.login $1- } !hadd prsseen %a $time $date if (%a != Player) { .timerannoy $+ $2 off if ($numtok($hget(prsalias,%b),44) < 10) !hadd prsalias %b $iif((!$hget(prsalias,%b)),%a,$addtok($hget(prsalias,%b),%a,44)) if ($numtok($hget(prsalias,%c),44) < 10) !hadd prsalias %c $iif((!$hget(prsalias,%c)),%a,$addtok($hget(prsalias,%c),%a,44)) if ($numtok($hget(prsalias,%a),44) < 10) !hadd prsalias %a $iif((!$hget(prsalias,%a)),%b,$addtok($hget(prsalias,%a),%b,44)) } if ($hget(prsbans,%a) != $null) || ($len(%a) == 1) { if ($hget(prsbans,%a) == 1) { .timer 3 1 mta.pm $1 $2 WARNING - THIS NAME IS BANNED! .timer 1 7 mta.kick $1 $2 !halt } else mta.text $1 The Name ' $+ %a $+ ' Has Been Previously Banned. } if ($hget(prswarns,%a) != $null) mta.text $1 %a Has Previously Been Warned $hget(prswarns,%a) $iif($hget(prswarns,%a) == 1,Time,Times) if (%pgs == on) { !hadd pgstemp allow $+ $2 no .timerallow $+ $2 1 60 !hdel pgstemp allow $+ $2 if ($pgs.showjoinmsg($1,$2) != $null) .timer 1 2 mta.text $1 $pgs.showjoinmsg($1,$2) var %a = $hget(pgsitems,register $+ $mta.nick($1,$2)) if (%a) { if ($mta.ip($1,$2) != %a) { mta.text $1 Warning: Invalid IP Match For $mta.nick($1,$2) .timer 1 10 mta.pm $1 $2 Contact An Admin For Assistance. .timer 1 20 mta.pm $1 $2 All Cash Related Functions Disabled. .timerallow $+ $2 off } } } } try that
  12. well no one gave me any requests for anything to be added i have said time and time again, i will make anything that people need as long as its reasonable, if not and u want something strange adding then i would make whatever u need and post it rather than adding it... i think i made everything i was asked for so far... if u dont ask... ur not gonna get. no plans for a release of 1.4 i have no idea what else i could add. its running perfectly for me on all 3 servers that i host, although ive written some custom addons for 2 of these servers, just mainly small scripts to run alongside. which make the servers more individual. i have helped around 10-15 people on msn to customise their version of PRS to how they want it... the way its set up makes it so easy to alter / add to / or modify.
  13. ok im back from work, i take it u managed to get it all working now?
  14. its not a major adjustment, but without looking i cant tell u what to alter to fix it. i set everything to a max 120000 (20mins) so ul have to edit this amount in the script. its probably in the script about 20 times.
  15. np, i cant please 100% of the people 100% of the time..... most of the people dont even ask for help... they just try it and say omfg its w**k, it wont even work... i asked for ideas and only got a few posts. seems people dont want to read.. or post, they just want to complain. however the people i created it for in the beninning seem to be managing perfectly without any problems and at least u were honest
  16. Scooby

    MTA Echo

    what script do u use... maybe post it so people can help
  17. Scooby

    MTA Echo

    if ur using it for SA, u need to replace mta.say with mta.text im not sure what script ur trying but i dont see mta.say in any of the ones listed.
  18. Scooby

    MTA Echo

    use a new .mrc file and load it along with ur others.
  19. they are all really simple issues. ok where to start... lol for a random message every 200 secs theres a few ways to do this, u can add the messages directly to ur script, or to an ini and get the script to read it.. so we'll do it that way... make and ini called randommessage.ini and add urs messages to it so it looks like this: [msg] 1=Dont like this map, type !new for a new map 2=visit out site at http://www.uvaclan.com 3=increase your max bid by buying a bidlevel! and so on... then in ur script add, under on *:SIGNAL:mta.connect: { .timerrnd 0 200 randommessage $1 now at the bottom of ur script add: alias randommessage { var %a = $ini(randommessage.ini,msg,0) var %b = $rand(1,%a) mta.text $1 $readini(randommessage.ini,msg,%b) } ok and as for disallowing characters find which characters u want to disallow with an ascii table http://www.asciitable.com/ u need to make a note of the decimal next to the charater ( ! = 33, " = 34, £ = 35 and so on) then under: alias newnick { if (($chr(33) isin $mta.nick($1,$2)) || $chr(34) isin $mta.nick($1,$2)) { mta.msg $1 $2 Invalid Text In Nick!!! mta.kick $1 $2 } add as many as u want... theres also other ways u can do this. the time played and total time spent on the server i'll do another time. as for !new, look in ur script for alias prs.newmap { the vote percentage is set to 1.25, change this to what u want, although 1.7 would give u %60 since it rounds it up. u cant have 61% as it is. i cant remember now, but i dont think i added total races. simple enough to add but it wouldnt work out right now without a little help:P i'll have to show u how to do this on msn i guess coz ul need to make a little something temporarily to find out the total which can then be removed. yes the stats did sometimes mess up for others... it depends how much text has to show, this is easily fixed... find the line in the script which displays the stats and add a 1 second timer to the second line, then a 2 second timer to the 3rd i definatly added this to version 1.3 so if u dont have this then u have an old version... the !map random command may have problems if ur maps are missing make sure u use the racelist updater the only other issue could be if ur map names have a - in them. the line is under startrace: if ($prs.mode($1) == deathmatch) { prs.addalive $1- if ($prs.players($1) == 1) .timershow 1 5 mta.text $1 This Is A Deathmatch Map, Type !new For A New Map. its set for DM just take the single line out and move it to the top of the alias. didnt realise any maps would last longer than 20 mins next time u have a question... ask.. dont wait till u have a load... too much to sort out in 1 go really hope this helps... let me know.
  20. Scooby

    Where The..

    its already in prs 1.3, (command: !banip *.*.*.* ) but if u dont use prs, for GUS it would be something like: elseif (($3 == !banip) && ($gus.level($1,$2) >= 5) { if (*.*.*.* iswm $4) mta.addban $1 $4 else mta.pm $1 $2 Error: Specify An IP To Ban } as ive mentioned before tho, All the bans will probably get removed when u restart your server. So this might only last as long as ur server is running. Me and a few others who tested it with me, all had this problem, which is why in prs it adds the ip's to a hash and it rebans them if they rejoin.
  21. Scooby

    Where The..

    u can already do it... just ban the ip but use .0.0 at the end, eg if you ban: 217.19.0.0 than it will ban all ip's starting with 217.19
  22. Scooby

    Where The..

    nothing is up... he is banned if u searched ur script... u didnt look very well. look under mta.join on *:SIGNAL:mta.join: { newnick $1- if ($hget(prsbans,$mta.ip($1,$2)) != $null) { mta.pm $1 $2 YOU ARE BANNED! - KEEP OUT! mta.ban $1 $2 !halt } his IP has been banned before, this code is added because the mta ban file gets reset once u restart the server, (although some people say it doesnt for them) but it does for me and some others, in every test ive tried. so to stop banned people from rejoining once ur bans file is emptied, the script stores all the banned IP's, and checks against these on join. if their IP is there, it re bans them.
  23. just change: on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } to on *:SIGNAL:mta.command: { if ($prs.level($1,$2) < 1) Check.upper $1- } on *:SIGNAL:mta.text: { if ($prs.level($1,$2) < 1) check.upper $1- } if ur using GUS, change the letters 'prs' to 'gus' i think that should do u
  24. and the point of ur post Lil'San^,^u<3 ???
  25. it calculates a percentage of capital letters from the text. this can be changed to what u like (currently 0.7), its also set to a minimum of 10 characters before it works, which can also be changed.
×
×
  • Create New...