Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. lol why is this line randomly added within the script a few times: General/Script/Load and load PRS . if u dont know what ur doing... dont try to edit it. theres a prs topic, any additional things u might need... u can always ask. i very much doubt anyone is gonna check through 100k of script, to find bugs u might have added.
  2. well i saw it long before toady knew how to script
  3. u should always check ur main mirc status window for any errors.. if u see any, just restart mirc and that 'should' fix it, if it doesnt.. then uve broke it. i have prs1.3 running on 3 servers without any problems. dont worry tho, my email is: [email protected] add me to msn and i'll help anyone out that needs it.
  4. well as far as i can remember, !addadmin will only let u add a person as an admin lower than ur own level. so u shouldnt be able to add some1 as a level 5 with the script, only levels 1 to 4. and if u try and remove a level 5 it wont let u. u can only add level 5's to the config.. and of course, u can only remove their admin level with the script if theyre not added to the config. the only way u can remove admins added to the config is by editing it. if this doesnt help, let me know and i'll see what i can do.
  5. hmm not sure weather u have an early version or a bugged copy.. try redownloading the script coz noone else has mentioned this bug. as for points and money for beating records... i didnt add it because its way too easy, u just keep going a bit faster each time... if u want to add this yourself, its easy enough. find this text around line 606: if ($mta.time($1,$2) < $prs.topticks($1)) { !hadd prstimes 1st $+ %race $mta.time($1,$2) !hadd prstimes 1stnick $+ %race $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) - New Record Time! - $mta.time($1,$2).text } all u need to do is add the cash here.. so change it to something like: if ($mta.time($1,$2) < $prs.topticks($1)) { !hadd prstimes 1st $+ %race $mta.time($1,$2) !hadd prstimes 1stnick $+ %race $mta.nick($1,$2) if (%pgs == on) pgs.add $mta.nick($1,$2) 500 mta.text $1 $mta.nick($1,$2) - New Record Time! - $mta.time($1,$2).text $iif(%pgs == on,- Bonus: $500) }
  6. well it might help if u tell me what is working and what is not...
  7. ok well i dont have mtama 3.24 loaded so i cant really test it, but have a go at this. on *:SIGNAL:mta.command:{ if (!cop* iswm $3) { var %a = 0,%b while (%a <= $mta.maxplayers($1)) { if (Cop* iswm $mta.skin($1,%a).name) { var %b = $+(%b,$mta.name($1,%a),$chr(32)) } !inc %a } mta.say $1 Cops: $iif(%b,%b,None) } elseif (!suspect == $3) { if (Cop* iswm $mta.skin($1,$2).name) { if ($mta.getid($1,$4) != -1) { set $+(%rpg.suspects.,$1) $addtok($+(%rpg.suspects,.,$1),$mta.name($1,$mta.getid($1,$4)),32) mta.say $1 $mta.name($1,$mta.getid($1,$4)) has been Suspected For $iif($5,$5,None) } else mta.msg $1 Invalid ID/Name } else mta.msg $1 $2 This Command Is Only For Cops! } elseif (!wanted == $3) { if ($numtok($+(%rpg.suspects,.,$1),32) < 1) mta.say $1 Wanted players: None else { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) if ($numtok($+(%rpg.suspects,.,$1),32) > !.timer 1 1 mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),9-18,32) if ($numtok($+(%rpg.suspects,.,$1),32) > 18) !.timer 1 2 mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),19-,32) } } } on *:SIGNAL:mta.kill:{ if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) { mta.name $1 $3 Killed a wanted player set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32) } }
  8. hmmm well theres plenty wrong... i cba to read thru it all since u didnt disable html and it doesnt show the whole script... but, ur timers are missing mta.say $1 also u might as well do away with the admin+ line since ur not likely to run the script without it on. also i cant see where u add a player as a suspect in it. the while loop.. i dont know if its coz i cant see the whole script, but it doesnt seem to have an !inc %a line.
  9. ok i have been asked for a few extras so here they are. this is a !givecash command. add this in: on *:SIGNAL:mta.command: { elseif (!give* iswm $3) pgs.givecash $1 $2 %a $5 then add this to the very bottom of your PRS. alias pgs.givecash { var %a = $round($4,0) if ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! elseif ($2 == $3) mta.pm $1 $2 Error: !give elseif ((%a !isnum) || (%a <1> $pgs.cash($1,$2)) mta.pm $1 $2 Error: Not Enough Cash! else { pgs.sub $mta.nick($1,$2) %a pgs.add $mta.nick($1,$3) %a mta.text $1 $mta.nick($1,$2) Gave $mta.nick($1,$3) $ $+ %a } } Note: this was never added because it makes it way to easy for anyone to steal all ur hard earned cash. I dont recommend using it if u want ur cash to be safe. ok and the second thing is cash gained for time online. this will give u $100 every 10 mins. add this in: on *:SIGNAL:mta.join: { .timeradd $+ $2 0 600 prs.addforonline $1 $2 then add this in: on *:SIGNAL:mta.part: { .timeradd $+ $2 off then add this to the very bottom of your script: alias prs.addforonline { pgs.add $mta.nick($1,$2) 100 mta.pm $1 $2 $100 Gained, Total: $ $+ $pgs.cash($1,$2) } I havent tested either of these commands since i didnt want them in my script, but they should work fine. any problems, just post here and i'll fix them. If u would like one of these but dont know how to add it to ur script, let me know and i'll do it for u.
  10. This will only work if the server has under 10 players
  11. not sure why u would only want it to be drawn if theres over 10 players, but its an easy thing to do. line 548, says: if ($pgs.lottofund($1) > $pgs.drawlottoat($1)) { just change it to: if (($prs.players($1) > 10) && ($pgs.lottofund($1) > $pgs.drawlottoat($1))) {
  12. Scooby

    Ranks

    lol? people still use that??? my rank script will work for gus, just change the part where it says: var %a = $ceil($calc($prs.points($1,$2)/175)) to the location of ur points. somthing like var %a = $ceil($calc($readini($scriptdirpoints.ini,points,$mta.ip($1,$2)) / 175)) i would recommend using names rather than IP's tho... peoples IP's change.
  13. gus is a general main script prs is also a general main script u only need 1 or the other not both
  14. there is... its called GRS. General Release Script, By [FMJ]Oli. check this post: http://forum.mtavc.com/viewtopic.php?t=11325&sid=2192b3342564fc16adcaa280a8b4b3ed
  15. Not sure why u have installed GUS tho Gus is 1 script, PRS is another... u dont need both.
  16. Scooby

    Ranks

    this is the one from prs. 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!) } and add this line to mta.command: elseif ($3 == !rank) prs.rank $1- this give 1 rank every 175 points, u should be able to easily change it to what u want.
  17. Scooby

    Hi, i'm stuck

    u need mtama too if its an mta script install mirc, load mtama, load ur script with mtama or manually.
  18. hehe. ok, welll there is of course 2 kinds of lag, lag due to an under spec pc, and lag due to a high ping. there is no way to detect a pc's specs from a script. u cannot see ur own lag, so if ur in a server and u think ur 200 ping is fine, it probably is for u, but to everyone else, ur probably warping back and fourth, especially at high speeds. u can alter the line yourself in the script its easy enough... search the script for the word 'lagger' and replace it with whatever makes u happy its in the script 3 times, so make sure u change all 3. any probs, just let me know.
  19. [email protected] add my msn and i'll send it to u.
  20. Scooby

    Ranks

    Public Release Script.
  21. Scooby

    MTA:MA Scripting

    ahh the motd, u need to upload ur motd somewhere, then edit ur config. it should look like this in ur config: # MOTDEnabled # Required: No # Purpose: Tells the server whether or not it should send a Message of the Day to the clients when they connect. MOTDEnabled 0 # MOTDURL # Required: No # Purpose: Defines where the client will download the client (Rich Text) MOTD from # Notes: Must include the initial http:// MOTDURL "" so just edit this in ur config. also, u should remember, if u have this enabled and for some reason the host of ur motd goes down, noone can join ur server. so make sure ur host is ok:)
  22. Scooby

    MTA:MA Scripting

    what welcome message?
  23. well basically it updates the info on race finish,it wont fix itsself now, untill some1 else exceeds his previous score. i will look into it, but the 4000 shouldnt matter.
×
×
  • Create New...