Jump to content

MTA:SA Public Release Script - PRS:1.3 Out Now!


Scooby

Recommended Posts

  • 3 weeks later...
  • Replies 644
  • Created
  • Last Reply

Top Posters In This Topic

hi Scooby, Can you help me... i'm want to do command, but can not do...

it's comand !transstat From to

this command must carry all !stat with nick1 on nick2

please...help... 8)

p.s. Sorry for my bad english :lol:

Link to comment

Hi, there isnt a command to transfer all stats, basically there are too many stats to make a script do this.

if u really need to transfer someones stats to a new name, the only way to do it is manually.

its not a big job.

close mirc, open each prs related text file in ur mirc dir, replace with , do this for each of the files (theres about 12ish), then open mirc.

making a script to do this would be quite hard since there are so many different stats saved per player.

Link to comment

vastly wretch... simply I edit script for server 24/7.

and my knowledges comes short...

I saw such command in one server...

I do it's command... and he does not want work...

here is I shall show begin this... see, can where that error?

    elseif ($3 == !trstats) { 
      if ($4 = from && $6 = to) { 
if ($mta.level($1,$2) >= 4) { 
          mta.text $1 Stats Transfer from nick: $5 to $7 complete 
          if ($ND.racestarts($5) != 0) { 
            !hadd prsstarts race $+ $7 $prs.racestarts($5) 
            !hdel prsstarts race $+ $5 

Link to comment

ur missing the point, theres more than just race starts, theres a stat for every map, every position u finish in, every win, loss, top time, cash, and so on, id guess on average, about 1000 instances for a detailed player.. This has been mentioned before in this topic i think.

to change every instance with a script would take ages.

Link to comment
this is a small part from all command...

well good luck to u if u think u can replace all stats.. its gonna take some serious loops to transfer them all.

theyre not stored the same, ie: name=info, some are different, if it had been a simple thing, i would have added it.

this isnt a task for a beginner, if u think u can do it then u definatly dont need my help in scripting, good luck.

maybe u can post it when ur done, for others.

Link to comment

hmmm, heh, sry for my absent-mindedness :P

i've got some hot query to Scooby :roll: ; I'm user of your scripts (v1.3), and i had fatal event with it. All our stats has been deleted by unknown reason and i can't resurect it :redhotevil:

All files named: prs*.txt has been overwritten by empty files; i had restored after few hours but I really don't know how to load data into scripts again. :?: Even if it isn't possible, please tell me how to protect from another bugs/errors, whatever, like this... I dont know why it happened; using mIRC, Admin v.4.15 by Aeron. Thanks

Link to comment
hmmm, heh, sry for my absent-mindedness :P

i've got some hot query to Scooby :roll: ; I'm user of your scripts (v1.3), and i had fatal event with it. All our stats has been deleted by unknown reason and i can't resurect it :redhotevil:

All files named: prs*.txt has been overwritten by empty files; i had restored after few hours but I really don't know how to load data into scripts again. :?: Even if it isn't possible, please tell me how to protect from another bugs/errors, whatever, like this... I dont know why it happened; using mIRC, Admin v.4.15 by Aeron. Thanks

yeah this happened to me once before too, not really sure of the reason.

the only thing u can do is make a backup of ur files.

if u have a backup, just replace the .txt files with ur backups, while mirc is closed.

Link to comment

Thanks. it's very useful info for me. :D

I'd like to ask one more question. It could be helpful to manage my server. How do exclude !redo function from lower admin's levels commands? And how to disable rcon map changing which can be use instead of !map command by lower level admins? Have you got some ideas? :idea: The option 'Change Map' in PRS Main options which set up admin lvl to changing maps doesn't prevent rcon changings.

Thanks.

P.S. How to set !redo command to work only if one player (an admin) is on the server.??

Link to comment

ok, where to start.... 1) u cant disable the rcon commands.

2) !redo command im guessing ur asking how to make this work if theres only 1 player online and he is an admin? or if there is only 1 admin online?

if u want it to only work when theres 1 admin online, use this:

open the script and find this line on line 133:

elseif ($3 == !redo) mta.startrace $1 $mta.races($1,$mta.race($1)) 

u need to replace that line with this:

elseif ($3 == !redo) { 
  var %a = 0, %b = 0 
  while (%a < %loop) { 
    if ($prs.level($1,%a) > 0) { 
      !inc %b 
    } 
    !inc %a 
  } 
  if (%b > 1) mta.startrace $1 $mta.races($1,$mta.race($1)) 
  else mta.pm $1 $2 Error: Other Admins Online. 
} 

and if u want this to only work above a certain admin level, replace the first line of this command with this:

if ($3 == !redo) && ($prs.level($1,$2) > 3) { 

this is set to work for admins above level 3, just change the 3 to anything u like.

if u only want the command to work if theres only 1 player in tha server and that 1 player is an admin, use this:

elseif ($3 == !redo) && ($prs.players($1) < 2) mta.startrace $1 $mta.races($1,$mta.race($1)) 

erm im not sure if i covered it all... ask again if this isnt what ur after, might be better to just ask 1 thing at a time too :)

Link to comment

thanks for alternarive solutions. :D It's useful for me. I know why stats has been deleted. Because, unfortunatelly, I ran second process of mIRC on start, and this overwrote the prm* files. :?

I know also how to block startrace from rcon. By adding in .conf file: RCON startrace 4 (4 is some admin lvl).

I've got some question, i don't know how to start map by script command in cases like this:

!map drift - starts desert drift if it is in maplist (The name 'drift' is included in this longer one)

!map Desert drift - starts desert drift (ok)

I think, scripts should always start this shorter one first.

Could you tell me if there is a possibility to write scripts in Visual Basic? Because I really don't know this strange language your scripts ha been wrote in. :P

Thanx ;)

Link to comment

not sure about the use of VB, im not sure u could do it without all the packet info.

as for the !map starting the wrong maps, its coz it starts the first one it finds with the in it.

try changing this:

    elseif ($3 == !map  || $3 == !changemap) { 
      if ($prs.level($1,$2) >= $prs.startmap($1)) { 
        if (!$4) mta.pm $1 $2 Error: Specify A Map Name 
        elseif ($4 == random) { 
          mta.text $1 Starting A Random Map - $hget(prstemp,randomrace) 
          mta.startrace $1 $mta.races($1,$hget(prstemp,randomrace)) 
        } 
        else { 
          var %a = $mta.races($1,* $+ $4- $+ *) 
          if (%a != $null) mta.startrace $1 %a 
          else mta.pm $1 $2 Error: $4- Not Found 
        } 
      } 
      else insuf $1 $2 
    } 

to this

    elseif ($3 == !map  || $3 == !changemap) { 
      if ($prs.level($1,$2) >= $prs.startmap($1)) { 
        if (!$4) mta.pm $1 $2 Error: Specify A Map Name 
        elseif ($4 == random) { 
          mta.text $1 Starting A Random Map - $hget(prstemp,randomrace) 
          mta.startrace $1 $mta.races($1,$hget(prstemp,randomrace)) 
        } 
        else { 
          var %a = $mta.races($1,$4-) 
          if (%a != $null) { 
            mta.startrace $1 %a 
            !halt 
          } 
          var %a = $mta.races($1,* $+ $4- $+ *) 
          if (%a != $null) mta.startrace $1 %a 
          else mta.pm $1 $2 Error: $4- Not Found 
        } 
      } 
      else insuf $1 $2 
    } 

that should check for exact names first.

the wiping is annoying, it happened to me once too, now its best to make backups just in case.

any probs, post here.

Link to comment

heh, little problem here , ive got mtama: v14.5 (Edited by lil_toady)

once my mtama crashed, so i restarted it, and the script (prs v1.3) didnt work, so i deleted the prs ini's, restarted the scripts and mta:ma, still dont work, whats the problem? absolutely none of the commands work...

if mtama is the problem, send me aerons v14.5 version, not edited by lil_toady...

Link to comment
heh, little problem here , ive got mtama: v14.5 (Edited by lil_toady)

once my mtama crashed, so i restarted it, and the script (prs v1.3) didnt work, so i deleted the prs ini's, restarted the scripts and mta:ma, still dont work, whats the problem? absolutely none of the commands work...

if mtama is the problem, send me aerons v14.5 version, not edited by lil_toady...

it would be impossible to restart the scripts if mtama wasnt working.. maybe a little more info in how far ur getting, might help.

when u start mirc, can u get mtama to show (thats the mirc admin dialog where u fill out ur server ip, port and pass etc)

if that works (mtama dialog shows), check on the remote tab of ur scripts editor in mirc and see what scripts u have loaded.

if u have mta.mrc, mta.dialog, and prs1.3 loaded (u can see whats loaded with 'view' at the top) can u connect to ur server with mtama?

deleting the 2 ini's with prs wont matter, they just store some basic info for the script.. if prs is loaded, the prs dialog should pop up with mtama and u can resave the info with the save button.

if u deleted any of the .txt files, new ones will be created.

Link to comment
heh, little problem here , ive got mtama: v14.5 (Edited by lil_toady)

once my mtama crashed, so i restarted it, and the script (prs v1.3) didnt work, so i deleted the prs ini's, restarted the scripts and mta:ma, still dont work, whats the problem? absolutely none of the commands work...

if mtama is the problem, send me aerons v14.5 version, not edited by lil_toady...

oh sorry this line: restarted the scripts and mta:ma. the script still dont work,

Link to comment
heh, little problem here , ive got mtama: v14.5 (Edited by lil_toady)

once my mtama crashed, so i restarted it, and the script (prs v1.3) didnt work, so i deleted the prs ini's, restarted the scripts and mta:ma, still dont work, whats the problem? absolutely none of the commands work...

if mtama is the problem, send me aerons v14.5 version, not edited by lil_toady...

oh sorry this line: restarted the scripts and mta:ma. the script still dont work,

when u restart the script, does it show any text in the server, like 'PRS 1.3 Script Reactivated'?

if not, did u check to see if the script was actually loaded still, also, did u check what other scripts u have loaded?

Link to comment

u should have at least these 3:

mta.mrc

mta.dialog

MTA-PRS1.3.mrc

if all these 3 scripts arent loaded. Unload them all and start from the beginning,

Load mta.mrc, mta.dialog will load itsself, make sure mta.mrc is loaded and u can see Multi Theft Auto mIRC Admin 4.15 by Aeron.

once u can see mtama, and can connect with it, then u can load up PRS1.3.

Link to comment

I'd like to ask, do you see something wrong in this modified fragment of code?

this line: ".timer 1 1 mta.text $1 Races:..." not appear in my scripts.

 elseif (!stat* iswm $3) { 
    mta.text $1 Full Stats For $mta.nick($1,%a) 
    .timer 1 1 mta.text $1 Races: $prs.racestarts($1,%a) - Finishes: $prs.finishes($1,%a) - Ratio: $round($calc(($prs.finishes($1,%a) / $prs.racestarts($1,%a))*100),1) % 
    .timer 1 2 mta.text $1 Placed: 1st: $prs.rank1($1,%a) - 2nd: $prs.rank2($1,%a) - 3rd: $prs.rank3($1,%a) 
    .timer 1 3 mta.text $1 Wins: Total: $round($calc(($prs.rank1($1,%a) / $prs.racestarts($1,%a))*100),1) % - Finished: $round($calc(($prs.rank1($1,%a) / $prs.finishes($1,%a))*100),1) % 
    .timer 1 4 mta.text $1 TopTimes: $toptimes($1,$mta.nick($1,%a)) - Points: $prs.points($1,%a) 
  } 

Tell me please how can i compile it? Or maybe it's runtime error?

Link to comment

Hello.

I have one problem with the scripts aeron 4.15. I using mIRC 6.16 general scripts. I connecting with the server and now I have problem, because I don't have full list maps. On the the server is 136 maps and I have in file 1.ini only 108/109 maps. My admin server has anything OK but when I connecting I have problems with the maps list. We have this same configuration mIRC.

Please help us.

Sorry to my english because I'm novice.

Thanks !

Link to comment
Hello.

I have one problem with the scripts aeron 4.15. I using mIRC 6.16 general scripts. I connecting with the server and now I have problem, because I don't have full list maps. On the the server is 136 maps and I have in file 1.ini only 108/109 maps. My admin server has anything OK but when I connecting I have problems with the maps list. We have this same configuration mIRC.

Please help us.

Sorry to my english because I'm novice.

Thanks !

this is due to packet loss, however u can download a racelist updater, that should cure ur problem with the amount of maps ur using. try here>>> viewtopic.php?t=19162

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...