Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. if ur not sure what to do, make a new .mrc file and paste ur new code it in to ur empty file. then load the new .mrc file, it'll work the same as adding into ur existing script, without the worries of breaking it. The prs modification to make it dm only is very minor, the quickest way is to just edit the alias called 'alias prs.mode' it looks like this alias prs.mode !return $iif($hget(prsstats,mode $+ $replace($mta.race($1),$chr(32),$chr(45))) == $null,Race,$v1) change the whole line to: alias prs.mode !return Deathmatch this will make all maps show as deathmatch, without the need set the mode for each map. theres a few lines that can be removed, however it should run just fine with them where they are. times and race stats wont show.
  2. that will only create another bug...
  3. sure, i was joking its not really my place to fix these bugs... again its nothing major, but i'll let Racer sort u out since its his script. /me prods Racer
  4. u got '1 Points' and '$50' bonus!
  5. Nice Job Mate. Good work Anyone wanting to have a bash at learning some LUA before mtasadm comes out, but as of yet hasnt really been able to try it, since theres nowhere to test ur work, can easily set up an MTA 0.5 server and have a play round with some functions.
  6. thats nothing major, edit the alias. 'alias slr.buymap {' on line 442 change the 'if' to 'elseif' this line: if (%b != $null) mta.pm $1 $2 This Map Has Allready Bought, Current Owner %b feel free to correct the wording
  7. looking good. theres always plenty to add... warnings, votekicking, more modes, etc...
  8. Really all the clan members/main admins should be added to the server config, they can then use rcon_login in the console to login. once u can login as an admin u can then add temporary admins to the script. this has been discussed a few times already if u read back a few pages. basically. u need to be added to the server config file (at the bottom of it theres a part about admins)
  9. Scooby

    PRS problems

    hmm not really sure what u mean, check mirc status window for any errors, post them here, and i can help u. without knowing the problem i cant really say what ur doing wrong.
  10. Scooby

    MTA automessages.

    yeah i did mean urs, i didnt realise there were more above it untill now. i clicked a link from an email last night and i only saw urs... of course now i can see there are a few.. urs looks fine apart from that one small bug on line 4.
  11. Scooby

    MTA automessages.

    line 4 should start with 'elseif' also, lines 6 and 10 arent needed. (maybe im just being picky ) looks fine apart from that. tip: u could use $ini(ininame.ini,topic,0) to get the total, which would save writing/storing it.
  12. the script wouldnt be possible with INI's some of the loops would crash mirc, it can only run due to hashes being up to 1000 times faster.. the only way would be to convert ur ini's (which isnt such a big job) if u list me the stats/ini formats it shouldnt be much of a job to make a few aliases to convert/update from GUS i'll take a look sometime.
  13. ok try this, i found a few bugs on *:SIGNAL:mta.command: { if ($3 == !tournament) { if ($prs.level($1,$2) != 5) mta.pm $1 $2 Error: Level 5 Command! elseif ($4 == off) { mta.text $1 Tournament Stopped! !hdel -w prstemp tourney* } elseif ($4 !isnum) mta.pm $1 $2 Error: !tournament <number of rounds> elseif ($hget(prstemp,tourneyrounds) != $null) mta.pm $1 $2 Error: Tournament In Progress! else { !hadd prstemp tourneyrounds $4 mta.text $1 Tournament Will Start On Next Map, For $4 $iif($4 == 1,Round,Rounds) } } elseif ($3 == !rounds) { if ($hget(prstemp,tourneyrounds) == $null) mta.pm $1 $2 Error: No Tournament In Progress! else mta.text $1 Tournament Rounds Left: $hget(prstemp,tourneyrounds) } elseif ($3 == !tpoints) mta.text $1 $mta.nick($1,$2) $+ 's Points $hget(prstemp,tourneypoints $+ $mta.nick($1,$2)) } on *:SIGNAL:mta.startrace: { if ($hget(prstemp,tourneyrounds) != $null) mta.text $1 Tournament Rounds Remainding: $hget(prstemp,tourneyrounds) } on *:SIGNAL:prs.endrace: { if ($hget(prstemp,tourneyrounds) != $null) { var %a = $mta.nick($1,$2) !hadd prstemp tourneypoints $+ %a $calc($hget(prstemp,tourneypoints $+ %a) + 1) mta.text $1 Tournament Point Goes To %a $+ ! - Total: $hget(prstemp,tourneypoints $+ %a) !hadd prstemp tourneyrounds $calc($hget(prstemp,tourneyrounds) - 1) if ($hget(prstemp,tourneyrounds) == 0) { mta.text $1 Counting Tournament Scores.... .timer 1 5 prs.tourneyfinish $1- } } } alias prs.tourneyfinish { var %a = 0, %b, %c = 0, %d while (%a < %loop) { if ($mta.nick($1,%a) != $null) { %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if (%b > %c) { %d = $mta.nick($1,%a) %c = %b } } !inc %a } var %a = 0, %b, %e = 0 while (%a < %loop) { %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if ((%b == %c) && (%d != $mta.nick($1,%a))) { %e = 1 %d = %d $mta.nick($1,%a) } !inc %a } if (%e == 1) mta.text $1 Its A Draw With %c Points: %d else mta.text $1 Tournament Winner With %c Points: %d !hdel -w prstemp tourney* }
  14. i didnt say it couldnt be done... i wrote this in about 5-10 mins^ it would be quicker to just rewrite it for GUS than trying to edit and make it work for GUS either way its not a big job, also it would depend on ur version of GUS, in the versions ive seen there's no DM mode, and No hashes. It could be made to work, the hashes would need to be either 'made' or converted to INI's also some way of sending the winning ID to the alias. any probs at all just repost here and i'll fix them, since i didnt test the script
  15. the script isnt compatible with GUS, and would take forever to make it compatible. It would be quicker to write the script for GUS, Which im not gonna do.
  16. ok thx for the offer, but i do have some other servers available.
  17. well that is strange, coz when i heard it was down, i heard from a friend of a friend who told me that the server had ran out and they were getting a new one now i dunno what to think... i suppose i should backup my files now lol
  18. i can see a few things u can tidy up there, also a few minor bugs. msn me when u see me on next. they can be updates for 1.1 nice job for your first attempt
  19. ok seems i cant edit my post, so here it is again with a few changes. ive added some checks and commands so u can tell me what it is or isnt doing a little better. on *:SIGNAL:mta.command: { if ($3 == !tournament) { if ($prs.level($1,$2) != 5) mta.pm $1 $2 Error: Level 5 Command! elseif ($4 == off) { mta.text $1 Tournament Stopped! !hdel -w prstemp tourney* } elseif ($4 !isnum) mta.pm $1 $2 Error: !tournament <number of rounds> elseif ($hget(prstemp,tourneyrounds) != $null) mta.pm $1 $2 Error: Tournament In Progress! else { !hadd prstemp tourneyrounds $4 mta.text $1 Tournament Will Start On Next Map, For $4 $iif($4 == 1,Round,Rounds) } } elseif ($3 == !rounds) { if ($hget(prstemp,tourneyrounds) == $null) mta.pm $1 $2 Error: No Tournament In Progress! else mta.text $1 Tournament Rounds Left: $hget(prstemp,tourneyrounds) } } on *:SIGNAL:mta.startrace: { if ($hget(prstemp,tourneyrounds) != $null) mta.text $1 Tournament Rounds Remainding: $hget(prstemp,tourneyrounds) } on *:SIGNAL:prs.endrace: { if ($hget(prstemp,tourneyrounds) != $null) { var %a = $mta.nick($1,$2) !hadd prstemp tourneypoints $+ %a $calc($hget(prstemp,tourneypoints $+ %a) + 1) mta.text $1 Tournament Point Goes To %a $+ ! - Total: $hget(prstemp,tourneypoints $+ %a) !hadd prstemp tourneyrounds $calc($hget(prstemp,tourneyrounds) - 1) if ($hget(prstemp,tourneyrounds) == 0) { mta.text $1 Counting Tournament Scores.... .timer 1 5 prs.tourneyfinish $1- } } } alias prs.tourneyfinish { var %a = 0, %c = 0,%d while (%a < %loop) { if ($mta.nick($1,%a) != $null) { var %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if (%b > %c) { %c = $mta.nick($1,%a) %d = %b } } !inc %a } var %a = 0, %b, %e = 0 while (%a < %loop) { %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if ((%b == %d) && (%c != $mta.nick($1,%a))) { %e = 1 %c == %c $mta.nick($1,%a) } !inc %a } if (%e == 1) mta.text $1 Its A Draw With %d Points: %c else mta.text $1 Tournament Winner With %d Points: %c !hdel -w prstemp tourney* }
  20. lol thx, yeah the server ran out that all my files we're hosted on, kindly lent to me by a friend. they have a new one, i just havent got round to relocating everything yet.
  21. Find somewhere to host it, or someone to host it for you, then post the link/url theres plenty of places u can upload it online, if u dont have anywhere, just google 'upload files' this will do till u can find a more permanent place.
  22. U could have asked in the prs topic... on *:SIGNAL:mta.command: { if ($3 == !tournament) { if ($prs.level($1,$2) != 5) mta.pm $1 $2 Error: Level 5 Command! elseif ($4 !isnum) mta.pm $1 $2 Error: !tournament <number of rounds> else { !hadd prstemp tourneyrounds $4 mta.text $1 Tournament Will Start On Next Map, For $4 $iif($4 == 1,Round,Rounds) } } } on *:SIGNAL:mta.startrace: { if ($hget(prstemp,tourneyrounds) != $null) mta.text $1 Tournament Rounds Remainding: $hget(prstemp,tourneyrounds) } on *:SIGNAL:prs.endrace: { if ($hget(prstemp,tourneyrounds) != $null) { !hadd prstemp tourneypoints $+ $mta.nick($1,$2) $calc($hget(prstemp,tourneypoints $+ $mta.nick($1,$2)) + 1) mta.text $1 Tournament Point Goes To $mta.nick($1,$2) $+ ! - Total: $hget(prstemp,tourneypoints $+ $mta.nick($1,$2)) !hdec prstemp tourneyrounds 1 if ($hget(prstemp,tourneyrounds) == 0) prs.tourneyfinish $1- } } alias prs.tourneyfinish { var %a = 0, %c = 0,%d while (%a < %loop) { if ($mta.nick($1,%a) != $null) { var %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if (%b > %c) { %c = $mta.nick($1,%a) %d = %b } } !inc %a } var %a = 0, %b, %e = 0 while (%a < %loop) { %b == $hget(prstemp,tourneypoints $+ $mta.nick($1,%a)) if ((%b == %d) && (%c != $mta.nick($1,%a))) { %e = 1 %c == %c $mta.nick($1,%a) } !inc %a } if (%e == 1) mta.text $1 Its A Draw With %d Points: %c else mta.text $1 Tournament Winner With %d Points: %c !hdel -w prstemp tourney } ok so i havent tested this, and its not completeley finished, but u can try it out and let me know what happens before i add the adding FOS's to the winner part. sorry i couldnt test it but i read ur post and though noone else would probably even attempt to make this for u, it may have a few bugs so this might take a few attempts it should work, as in start the tourney for the # of maps, then show the winner, or show winners if its a draw. just create a new .mrc script and paste this in. run it as a seperate script.
  23. alias prs.login { var %a = $mta.nick($1,$2) if ($hget(prswarns,AdminIP $+ %a) != $null) { if ($hget(prswarns,AdminIP $+ %a) == $gettok($mta.ip($1,$2),1-2,46)) { .timer 1 1 mta.text $1 %a Auto-logged In, Level $iif($hget(prswarns,AdminLevel $+ %a) == 1,(FOS),$v1) !hadd pgstemp loggedin $+ $2 $hget(prswarns,AdminLevel $+ %a) .timerkick $+ $2 off } Try that.
  24. both of those will do the same, there is no error there, more than likely its to do with ur trace script. did it work before? also sometimes the trace may take some time to show.
  25. been on holiday, and my pc is still acting up so i havent been on much. just nip on every now and then. pc comes on then dies after about 10 mins. getting bored of rebooting it up now grrr
×
×
  • Create New...