Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. on *:SIGNAL:mta.command:{ if ($3 == !brb) { mta.text $1 $mta.nick($1,$2) Will Be Right Back. $iif($4 != $null,Reason: $4-) if ($mta.level($1,$2) > 2) mta.freeze $1 $2 } elseif ($3 == !back) { mta.text $1 $mta.nick($1,$2) Is Back if ($mta.level($1,$2) > 2) mta.unfreeze $1 $2 } } theres so many different ways u can do this script... lol all of these look ok, we could go on forever making useless scriptsbits like this. personally i would have done away with the freezing, and had it all in 1 line. its all good
  2. If u run ur script off ur pc that u turn off, then no, the only way is to run ur script from another place, eg: have it hosted, or get some1 else to host it for u. ur other admins can always use rcon admin commands to freeze/mute/kick/ban while u get that sorted.
  3. lol do u guys not follow the PRS/PGS topics?? Hmm i'll have to get PRS/PGS made sticky... I'll be making a start PGS1.2 Somtime this week, ive had a few suggestions so far, but the basic lineup includes buying things, im not 100% sure what im gonna add yet, 'Banning' was nowhere on the list tho. Plz post all suggestions in either the PRS or PGS Topics. Thanks If u dont ask for things, they will never get added.
  4. ok well spotted, to fix, goto line 1123, look for alias listremmaps { change it to: alias prs.remmaps {
  5. dont forget to fix the missing bracket elseif $3 == !brb) { to elseif ($3 == !brb) {
  6. on *:SIGNAL:mta.command:{ if ($3 == !r) rpg.radio $1- } alias rpg.radio { var %a = 0,%b = $mta.skin($1,$2).name while (%a < $mta.maxplayers($1)) { if (%b == $mta.skin($1,%a).name) { mta.msg $1 %a Unit $2 $mta.name($1,$2) $+ : $4- Over. } inc %a } } this might be a bit closer, although i think u might wanna add it under a pm, or theres not much point in the command at all.
  7. Scooby

    How to do....

    The script was wrote by [FMJ]Oli, and he added he crc checker so people wouldnt edit it (although this was around 2yrs ago now). what do u want to do to it? i mean if its just adding more stuff, u could always run another script alongside.
  8. Scooby

    rangeban script

    u can range ban with PRS, or even remote admin. eg: !banip 89.123.0.0 will ban all ip's starting with 89.123. if ur too lazy to type .0.0 on the ban command, u could always add the same info in mta.command for !banip to !rangeban and add the 0.0 in the command.
  9. Scooby

    Getid

    i told u already u dont have to remake all the commands... just signal mta.command with ur irc details. u can probably get all ingame commands working from irc in about 4 lines.
  10. Scooby

    Getid

    its already added in ur script... why would u need it twice?
  11. ok leave it with me, i'll see what i can do, not sure when i can get it done tho, im pretty busy all week, i know a few of u out there have lots of ideas. buyable items, stars, levels, i'll see what i can make for u all. maybe i'll go the whole hog and make customisable items
  12. And when you win you get 1000 winning money, 50 x amount of players (20) = 1000 So 10000 and no changing hehe ok but u did say 30k:P
  13. Scooby

    help with this

    so its just a counter? u do !Rec it adds '1' to the rec's (whatever 'rec' stands for) so the player can type !recs and see how many he has? sounds a bit useless, but yeah i can show u how to do this, u could always modify the warn script, its exactly the same. eg: !warn would give 1 warning so all u need do is copy the info needed for the !warn section, also remember to add a new hash in the load and save. but the main alias would be like this: alias prs.rec { ;$1:Server $2:AdminID $3:PlayerID $4-:Reason if ($3 == $null) mta.pm $1 $2 Error: !rec elseif ($3 == $2) mta.pm $1 $2 Error: Cannot '!rec' Self elseif ($mta.level($1,$2) <= $mta.level($1,$3)) insuf $1 $2 else { var %a = $prs.recs($1,$3) !inc %a !hadd prsrecs $mta.nick($1,$3) %a mta.text $1 $mta.nick($1,$2) Has Rec'd $mta.nick($1,$3) $iif($4 != $null,Reason: $4-) mta.text $1 $mta.nick($1,$3) $+ 's Rec's: %a } } alias prs.recs !return $iif($hget(prsrecs,$mta.nick($1,$2)) == $null,0,$v1) then u would need in mta.command (In Admin commands section): elseif ($3 == !rec) prs.rec $1 $2 %a $5- elseif ($3 == !recs) mta.text $1 $mta.nick($1,%a) $+ 's Recs: $prs.recs($1,%a) as u can see the hash is called 'prsrecs' and thats about it. ive used 'rec' still not sure about what it is but this is a nice universal command, anyone can use it for anything. just change !rec to whatever.
  14. Scooby

    help with this

    it took 17 replies to get !lol to work. i think i'll give this a miss, ur mixing hash and ini's and i have no idea really what ur trying to do. what does !Rec do?
  15. 30k ? the calc is: half the players * 2, so even if there were 20 players, the max u can win is $9000. u could always make it like this alias prs.rank { var %a = $ceil($calc($prs.points($1,$2)/175)) if (%a > 9) %a = 9 mta.text $1 $mta.nick($1,$2) $+ 's Rank: %a - $replace(%a,0,Noob,1,Rookie,2,Novice,3,Sunday Driver,4,Pro Driver,5,Excellent Driver,6,Drift King,7,Burnout King,8,Awesome Racer,9,Ultimate Racer!) } i'll make them both for u if u want, but i dont see why people should be allowed to idle on race servers. they get in the way at race starts. and dont benefit from being idle. people should quit and rejoin when theyre back. im out for the day so you'll have to wait till i get home tonight.
  16. im not in favour of idle players... admins should kick them, they only get in the way. theres no way of properly detecting idle players, another job for the admins. something for u to add urself in ur own addon script maybe? another easy change, just change mta.text to mta.pm in the !Stat line. not a clue what ur on about u cant buy cars or tanks. u can do this too... if u dont want people to join with cash. alias pgs.cash !return $iif($hget(pgscash,$mta.nick($1,$2)) == $null,5000,$round($v1,0)) change the 5000 to 0 Keslertje2005, As for the rank alias, i thought it would be a while before u got 16000 points, im guessing uve edited it, same with the cash...(why?) anyway, i forgot i can only use 10 ranks the way i did it, and no, lol it wasnt intentional. alias prs.rank { var %a = $ceil($calc($prs.points($1,$2)/175)) if (%a > 9) %a = 9 mta.text $1 $mta.nick($1,$2) $+ 's Rank: $replace(%a,0,Noob,1,Rookie,2,Novice,3,Sunday Driver,4,Pro Driver,5,Excellent Driver,6,Drift King,7,Burnout King,8,Awesome Racer,9,Ultimate Racer!) } this just about evens it out. if u do want more than 10 ranks, ul have to do it the big way, copying line after line. I'll have to have a look at adding some buyables, although im busy working all week and might not get a chance to do anything major. i'll see what i can come up with since it seems a reasonable idea. a buyable command sounds nice. maybe they can buy different status's, heh i'll have a look into it anyway.
  17. Scooby

    help with script

    lmao theres like so many ways to make this script, and they all work for me:P maybe u should give up stylo, or let some1 add it for u:P edit: on *:SIGNAL:mta.command:{ var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)) if ($3 == !hi) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Says Hi Everyone!,$mta.nick($1,$2) Says Hi To $mta.nick($1,%a)) elseif ($3 == !bye) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Says Bye Everyone!,$mta.nick($1,$2) Says Bye To $mta.nick($1,%a)) elseif ($3 == !lol) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Is Laughing Out Loud!,$mta.nick($1,$2) Is Laughing Out Loud At $mta.nick($1,%a)) } this works if u use prs...same line 3 times edited to give u an example. u can use whatever text u want.
  18. ok thx, i'll update the download link. Edit: Updated
  19. the cash for races is done under mta.finish, but since that alias isnt signaled in a DM or RS-DM i made my own. so u dont want it to add cash on race maps since thats already there. and yes, the 50 is the amount. free free to set it to what u like:) i only made a few changes in PGS1.1, mainly betting on winners in DM and RS-DM's i think that should work fine now if u add that part.
  20. they do already win money when they win a race, but maybe i forgot to add it for DM's lol ok open ur script and paste this over the prs.endrace alias on *:SIGNAL:prs.endrace: { pgs.checkwins $1- if ($prs.mode($1) != Race) { var %a = $calc($pgs.players($1) * 50) pgs.add $mta.nick($1,$2) %a pgs.pm $1 $2 Cash Earned: $ $+ %a - Total Cash: $ $+ $pgs.cash($1,$2) } } let me know if this is ok, and if it is, i'll update the main script. it should give cash to the winners on DM and RS-DM maps.
  21. I added both scripts to this download, since PGS1.1 is only for use with PRS1.2 onwards. Updated on page 1, first post, or u can use the links under my sig. people still having trouble downloading can add my msn and i'll send it. [email protected] Also, i found bug in the first release of 1.2, i'll update the link, although u guys could fix this if u open ur script. look for this line: !hadd prstemp randomrace $mta.races($1,$calc($rand(1,$mta.races($1)) - 1)) it should be under mta.startrace, line 437 it needs moving to the top of the alias. so the start of ur alias should now look like this: on *:SIGNAL:mta.startrace: { !hadd prstemp randomrace $mta.races($1,$calc($rand(1,$mta.races($1)) - 1)) .timerendrsdm off .timershow off if u cant do this just download an updated version. basically it was starting a new map if there werent enough players for a DM map, but not repicking the random map. this should cure it.
  22. of course.. u know i know this? in my script they started off at 100, then 500, then 1000. after a years worth of stats they will soon fill up. I thought 1000 would last u quite some time, also, the speed difference is not even noticable. i have 1500 lines of stats at roughly 40 stats per line and my server isnt always very busy... thats around 60,000 stats. of course u could always set the size individually too, which is what i did in my first script, since not all of them need to be that big. but either way, the speed difference depending on hash size is not noticable at these sizes.
  23. i dont wanna drag this out since its a topic for voting ur fav script, but prs is by far more cpu friendly than gus. u can see this if u open ur task manager and look at the cpu usage. on my pc, which is also 2.1ghz i get around 15% cpu usage with gus and 1% with prs with around 10 players on the server. using the amount of ini's people have been seen to be using for storing players stats/cash/info etc, using gus it will get worse much faster than using prs. mainly because storing info in ini's gets really slow once the ini's fill up. storing in hash tables is much faster. its ur own opinion tho and thats fine.
×
×
  • Create New...