Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. ok so, theres a couple of simple errors. alias stuck { elseif ($4 == $null ) mta.pm $1 $2 Error: Please specify a name, !stuck <name> else mta.text $1 You're stuck $mta.nick($1,%a),please do /kill. } alias hi { elseif ($4 == $null ) mta.pm $1 $2 Error: Please specify a name, !hi <name> else mta.text $1 Hi,$mta.nick($1,%a)! } lets take them one at a time.. first, u cannot start the first line of the alias with 'elseif', the format is, if - elseif - else. so this line: elseif ($4 == $null ) mta.pm $1 $2 Error: Please specify a name, !stuck should be: if ($4 == $null ) mta.pm $1 $2 Error: Please specify a name, !stuck and secondly the 'else' line on its own, can be joined to the line below it which also has an error or two, also the second line wont work since it has no idea what the variable %a is anymore, also after $mta.nick($1,%a) there must always be a space. if u dont want the space to show in ur text in the chat then u need to add $+ this will remove it. ok so the line should read: else mta.text $1 You're stuck $mta.nick($1,%a) $+ ,please do /kill. a simple 1line/2line command like this would be better in mta.command, since it can be made in 2 lines. since the variable %a is defined in mta.command and we didnt send it to ur new alias, %a needs to be defined again or we need to edit the first line and send it, so lets do that. so the finished command needs to look like this, in mta.command: the line should now be: elseif ($3 == !stuck) stuck $1 $2 %a then ur new alias: alias stuck { if ($2 == $3) mta.pm $1 $2 Error: Please specify a name, !stuck <name> else mta.text $1 You're stuck $mta.nick($1,$3) $+ ,please do /kill. } the same format needs to be applied to the other alias u made and that should do it. if you did want to try it again the other way, the whole thing could stay in mta.command and read: elseif ($3 == !stuck) { if ($2 == %a) mta.pm $1 $2 Error: Please specify a name, !stuck <name> else mta.text $1 You're stuck $mta.nick($1,%a) $+ ,please do /kill. } remember your brackets and spacings. 1 small error could cause the whole script to stop working. 1 final thing, if u want to add lots of custom commands like this and ur not too sure about things, then you can make and load and new script of ur own... it will still work the same and wont effect prs if u break it. if u need help with this just add me on msn and ask. msn: [email protected]
  2. Ah i see, i remember that version theres a bug in that line, just delete the first bracket... seems theres one too many. my version of prs has a few little fixes in like this and small modifications that ive come across along the way, so thats why my line numbers dont match urs. the line should read: if ($prs.clantag($1) isin %a) mta.pm $1 $2 IP Mismatch, Login To Save New IP try that, sorry about that.
  3. well it usually means the error is in that line, paste me line 1007, or the whole alias. im guessing your script is different to mine, it looks like it could be in the join alias going by the line numbers in my prs script but if u paste it i'll be able to tell better.
  4. hi, the most comon reason is because ur splitting the curly brackets in the wrong place, or that ur not adding the right amount in ur new command, this will cause the script to give errors, these can along with any other errors, be seen on the main mirc window. if for example u wont to add a command, the easiest way is to add ur 1 line command into mta.command, then create a new alias for that command at the very end of the script, that way u shouldnt have to touch the brackets at all. example: elseif ($3 == !showmesomestuff) showmesomestuff $1- this line would be added after the first 'if' line in mta.command, which should be: if ($3 == !name) mta.text $1 Map Name: $mta.race($1) once ur line is added, move down to the very end of the script (thats if ur not sure how to add to the middle of it) then u can add ur new alias, like so: alias showmesomestuff { put what u want the command to do in here and dont forget the final bracket below } the alias can be as big or small as u like, and u as long as ur names are not duplicates then they'll work fine. any other questions, just let me know... i hope this helps, if not u need to go back to the very basics, i posted a basic tutorial on these forums a while back, it should be there somewhere... try a search.
  5. sadly i dont, theyre changing all the time and its been ages since ive had anything to do with toadys script, i havent used that script for well over a year now. maybe u could try posting in that topic and see if anyone replies there. sorry i couldnt be more helpful.
  6. the only one i know of that used to work, was lil_toady's, however im not sure if its a working version amymore. https://forum.multitheftauto.com/viewtopic.php?f=30&t=18961&st=0&sk=t&sd=a more than likely it doesnt work anymore tho, its just a case of finding a site to use for the whois info, once the sites change, the trace info no longer works and unless u understand the script, u will never be able to fix it, even tho its just a couple of lines that need to be edited. maybe you could just ask people where they live?
  7. sorry for the late response, do u still need help with this?
  8. you'll need all the files to make it work, i dont think it will work with just mta.mrc alone.
  9. Make sure u unpacked mtama into ur mirc dir, if its not there and u installed it to another location, just move the folder into ur mirc dir. u can load it from any dir but im not sure if there are any other files/ini's in that dir that are needed to be in the main dir, so its best to make sure its in ur main mirc dir. it should be something like this: C:\Program Files\mIRC
  10. ok thats good, although, its not really any different, just layed out worse and he's removed one of the error msgs. but at least u have it working thats the main thing.
  11. does it do anything? and are u sure u added it in the script before the other !vote line?
  12. try something like this... the whole thing should be: elseif ($3 == !kick) { if ($prs.level($1,$2) >= $prs.kick($1)) { if ($prs.level($1,$2) > $prs.level($1,%a)) { mta.text $1 Kicking $mta.nick($1,%a) $iif($5 != $null,Reason: $5-) .timer 1 5 mta.kick $1 %a } else insuf $1 $2 } else insuf $1 $2 }
  13. sure its possible, ok, try this, find this line: elseif (!vote* iswm $3) prs.votekick $1- and above that line add this: elseif ($3 == !voteredo) votemap $1 $2 $3 $mta.race($1) this should work the same ass !votemap i havent tested it, so let me know if its what u want.
  14. there is already the banword function added, however as it stands it is set up for fining people. eg: player1 types: player you noob!!! and 'noob' is a banned word, player1 is then given a warning, other players can then type !fine player1 and they will receive some of player1's money. the idea being that after a while he will either be broke or not want to lose any more money that he stops. PGS needs to be turned on for this to work as it stands.(using the dialog) the function can easily be edited to temporarily freeze or mute players tho. find this: alias pgs.bannedwords { var %a = 1,%b = $3-,%c = $lines(pgs.banwords.txt) while (%a <= %c) { if ($read(pgs.banwords.txt,%a) iswm %b) { mta.pm $1 $2 Watch Your Language! .timer 1 2 mta.pm $1 $2 $+(',$read(pgs.banwords.txt,%a),') Is A Banned Word! !hadd pgstemp cuss $+ $2 $rand(100,1000) .timercuss $+ $2 1 60 !hdel pgstemp cuss $+ $2 } !inc %a } } and change it to this: alias pgs.bannedwords { var %a = 1,%b = $3-,%c = $lines(pgs.banwords.txt) while (%a <= %c) { if ($read(pgs.banwords.txt,%a) iswm %b) { mta.pm $1 $2 Watch Your Language! .timer 1 2 mta.pm $1 $2 $+(',$read(pgs.banwords.txt,%a),') Is A Banned Word! !hadd pgstemp cuss $+ $2 $rand(100,1000) .timercuss $+ $2 1 60 !hdel pgstemp cuss $+ $2 mta.freeze $1 $2 .timerunfreeze 1 30 mta.unfreeze $1 $2 } !inc %a } } here you can see the two lines ive added, they will freeze the player and unfreeze after 30 seconds. u can change it to 'mute' just by editing the words and it should be fine. remember you will need to !banword before it will work. if this is still no good please post again and i will try to help further.
  15. There is no command in PRS to buy maps, I never added it when i wrote PRS coz at the time i never really liked the idea. Since then a few people have asked for it so i wrote a script to run alongside PRS. Just paste this code into a "new" .mrc file and load it with the script editor. /* ///////////////////////////////////// ////// MTASA:RACE ////// ////// Map Ownership ////// ////// BY: [uVA]Scooby ////// ///////////////////////////////////// Script to be used with PRS 1.3 (it wont work as it is without PRS!) this script pays $200 to the map owner every time the race starts, regardless if they are in the server. maps cost $250000 and can be sold for the same price. commands: !buymap - !sellmap - !owner - !mapsowned */ on *:SIGNAL:mta.connect: { set %mapprice 250000 set %bonuscount 0 } on *:SIGNAL:mta.command: { var %race = $replace($mta.race($1),$chr(32),$chr(63)), %owner = $hget(prsmaprate,owner $+ %race) if ($3 == !owner) mta.text $1 $mta.race($1) - $iif(%owner == $null,Available For Purchase ($250000),Owned By: %owner) elseif ($3 == !buymap) prs.buymap $1 $2 %race %owner elseif ($3 == !sellmap) prs.sellmap $1 $2 %race %owner elseif ($3 == !mapsowned) prs.mapsowned $1 $mta.nick($1,$2) } alias prs.buymap { if ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! elseif ($pgs.cash($1,$2) < %mapprice) mta.pm $1 $2 Error: Not Enough Cash! ( $+ $ $+ %mapprice $+ ) elseif ($4 != $null) mta.text $1 Map Already Owned By: $4 else { mta.text $1 $mta.nick($1,$2) Is Buying This Map For $ $+ %mapprice pgs.sub $mta.nick($1,$2) %mapprice !hadd prsmaprate owner $+ $3 $mta.nick($1,$2) } } alias prs.sellmap { if ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! elseif ($4 != $mta.nick($1,$2)) mta.pm $1 $2 Error, You Dont Own This Map! else { mta.text $1 $mta.nick($1,$2) Is Selling This Map For $ $+ %mapprice pgs.add $mta.nick($1,$2) %mapprice !hdel prsmaprate owner $+ $3 } } alias prs.mapsowned { var %a = 0,%b = 0, %c = $mta.races($1) while (%a < %c) { var %d = $replace($mta.races($1,%a),$chr(32),$chr(63)) if ($hget(prsmaprate,owner $+ %d) == $2) { !inc %b } !inc %a } mta.text $1 Total Maps Owned By $2 $+ : %b } on *:SIGNAL:mta.startrace: { set %bounscount $calc(%bonuscount + 1) if (%bounscount >= 10) prs.bonuswin $1 $2 var %race = $replace($mta.race($1),$chr(32),$chr(63)) var %owner = $hget(prsmaprate,owner $+ %race) if (%owner != $null) { var %div = 200 .timer 1 10 mta.text $1 This Map Is Owned By: %owner - Paying Dividends. $ %div pgs.add %owner %div } else .timer 1 10 mta.text $1 Buy This Map, Price:$ %mapprice (!buymap) } alias prs.bonuswin { set %bonuscount 0 if ($prs.players($1) > 1) { :scooby var %nick = $mta.nick($1,$rand(0,$mta.server($1).cmax)) if (%nick == $null) goto scooby else { mta.text $1 Bonus Win - Paying %nick $ $+ 1000. pgs.add %nick 1000 } } } This script will allow people to buy maps for the set price($250000), this can be set to whatever u want but only by editing the amount in the script under mta.connect. Players can also sell the maps back, if they no longer want them or if theyre being removed. Owners of maps receive $200 each time the map is played even if theyre not in the server(the whole point of buying one i guess). And finally, after every 10 races, a random player in the server receives £1000 bonus for playing. Commands: !buymap - !sellmap - !owner - !mapsowned I hope this helps
  16. 1) which script do u have to buy maps? 2) are you using prs? answer me these and im sure i can help u better
  17. it has an error and is little use to anyone without the functions.
  18. no, thats not right its not supposed to work like that, i guess im gonna have to run the script to get it working properly. earlier in that alias, at the top, it defines %a as the players name, so im not sure how come it doesnt show lower down the alias in that line, and since it doesnt work at the beginning of the line (%a is the players name which isnt showing), then more than likely the aliases arent working right either (since it uses %a in the check) and finally, its not supposed to pm u if the player has no other aliases (to cut down on spam) leave it with me and i'll post a tested working version. -------------------------------------------------------------------- *Edit* Ok, ive changed a few bits, this should work now, just replace this with what u already added at the bottom of that alias. var %a = $mta.nick($1,$2),%b = $mta.ip($1,$2),%c = $replace($hget(prsalias,%b),$chr(44),$chr(32),%a,$null) if (%c != $null) { var %d = 0 while (%d < %loop) { if (($prs.level($1,%d) > 0) && (%d != $2)) mta.pm $1 %d %a $+ 's Aliases: %c !inc %d } } ive just added the variables again since they werent carrying from the top of the alias, also ive stopped it from pm'ing your own aliases to yourself. tested in a fashion and it seems to work ok now. any probs just let me know.
  19. Yeah that shouldnt be too hard, ok try adding this code, first off in ur script find: Alias newnick then move down the script to the very last } in that alias. add this code 'above' the last bracket in that alias. if ($hget(prsalias,%b) != $null) { var %d = 0 while (%d < %loop) { if ($prs.level($1,%d) > 0) mta.pm $1 %d %a $+ 's Aliases: $replace($hget(prsalias,%b),$chr(44),$chr(32),%a,$chr(32)) !inc %d } } make sure you put this in the right place or your script will probably stop working. since i dont have a server running at the moment i havent tested this script so ul have to let me know how it is and if u need any changes to it.
  20. well if this is the case then !new is the instant mapchange vote system, this will change the map instantly but requires more votes this can be very handy if theres just a few of u in a server and none of u are admins. if you dont want a a random map, u can vote a map to be next then type !new.
  21. Im not 100% sure what u mean, are you sure what u need isnt already added? have you read the the commands file? There are many commands already for changing maps for admins, but im guessing ur talking about the public? The !votemap command for players is set that way because someone may be busy racing, on a great time and they wouldnt want the race changing instantly. The command !new is similar but is an instant mapchange, like what i think ur asking for, although it starts a new random map unless u use !votemap first. Then theres always the option of paying a little loose change to pick the next map. if im on the wrong lines here maybe you can explain a little better either way post here and let me know.
  22. not really sure what ur asking, the alias has a few errors in it, the 'if, elseif,else" is wrong, also the write lines are wrong, u specify -i but dont give a line number to overwrite. if its for then nextmap, then really u only need to set a variable. ie: set %nextmap %b all this stuff is in prs already so im guessing this is for ur own script?
×
×
  • Create New...