Jump to content

PRS:1.3 Help


kekku500

Recommended Posts

  • 1 month later...
MTA:SA Public Release Script - PRS:1.3:

All maps starting mode is race right?

how i can change it to deathmatch? So i dont need put !setmode dm for evry new map!

you are wrong in this thread, go to the thread "Addcons" there you find information about PRS.

PRS is a Script for MTA:mA (MTA:mIRC-Admin) a Remote-Admin-Console for MTA:SA. You can load Scripts in it, for example if you type !admin, it shows which admins are online and stuff like this...

Link to comment

make a alias that writes all the maps as dm i have one but its for my script that only uses ini's and i dunno where it saves it for prs. This Is what i come up with please correct if i am wrong thanks.

on *:SIGNAL:mta.command: {

if ($3 == !setallmodes) || ($3 == !setallmode) slr.addallmodes $1-

}

alias slr.addallmodes {

if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect privileges

else {

if ($4 == race) {

if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Admin Level.

if ($mta.level($1,$2) >= 5) {

slr.addmapmoderace $1-

mta.pm $1 $2 Processing All Maps As Race

.timer 1 5 mta.pm $1 $2 All Maps Have Now Been Processed As Race

}

}

else {

if ($4 == dm) || ($4 == deathmatch) {

if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Admin Level.

if ($mta.level($1,$2) >= 5) {

slr.addmapmodedm $1-

mta.pm $1 $2 Processing All Maps As Deathmatch

.timer 1 5 mta.pm $1 $2 All Maps Have Now Been Processed As Deathmatch

}

}

else mta.pm $1 $2 Error !addmode

}

}

}

alias slr.addmapmoderace {

var %a = 0

while (%a <= $mta.races($1)) {

if ($mta.races($1,%a)) {

!hadd prsstats mode $+ %a Race

}

inc %a

}

}

alias slr.addmapmodedm {

var %a = 0

while (%a <= $mta.races($1)) {

if ($mta.races($1,%a)) {

!hadd prsstats mode $+ %a Deathmatch

}

inc %a

}

}

but i think you have to change the prs.mode alias to read the file diffrernt as the maps are saved by id how i do it

so....

alias prs.mode !return $iif($hget(prsstats,mode $+ $mta.races($1,$mta.race($1))) == $null,Race,$v1)

i admit i am no expert with writing hash files so if its wrong i apoligise

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...