Jump to content

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


Scooby

Recommended Posts

ok the points line would show something like:0 $mta.nick($1,%a) $+ 's Points

make sure u still have the 's in the line.

as for the points and cash, check your mirc status window and see if it shows any errors at all... if it does, post them and i can help.

without knowing what youve changed its kinda hard to help.

Yes I know that keeping 's would solve problem but it's not such thing as "'s" after somebody's name in my lang.

There's no error anywhere. I changed only texts that are shown on the chat, nothing more.

Link to comment
  • Replies 644
  • Created
  • Last Reply

Top Posters In This Topic

post ur mta.finish alias and i'll take a look.

Meaning what?

There's no errors in Mirc window.

open ur script and find:

on *:SIGNAL:mta.finish: {
lots of lines here
}

just copy and paste it so i can see if theres an error.

Link to comment

This?:

on *:SIGNAL:mta.finish: {

if ($mta.rank($1,$2) == 1) !.signal prs.endrace $1 $2

var %race = $replace($mta.race($1),$chr(32),$chr(45)),%time = $mta.time($1,$2),%split = $calc(%time - $prs.topticks($1))

!hadd prsfinish $mta.nick($1,$2) $calc($prs.finishes($1,$2) + 1)

!hadd prsmapfinish %race $+ $mta.nick($1,$2) $calc($prs.mapfinishes($1,$2) + 1)

if ($mta.rank($1,$2) <4> 0,$+($chr(40),+,$prs.time(%split),$chr(41)))

.timer 1 1 prs.checktops $1-

}

if ($prs.players($1) > 1) {

var %a = $calc($prs.players($1) - $mta.rank($1,$2))

!hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + %a)

if (%a > 0) mta.pm $1 $2 %a $iif(%a == 1,punkt,punktow) zarobione. Ogolem: $prs.points($1,$2)

}

if (%time < $prs.bestticks($1,$2)) {

!hadd prstimes %race $+ $mta.nick($1,$2) $mta.time($1,$2)

mta.pm $1 $2 Nowy najelpszy osobisty czas! $mta.time($1,$2).text

}

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) - nowy najlepszy czas! - $mta.time($1,$2).text

}

if ($mta.rank($1,$2) <7> 0) {

pgs.add $mta.nick($1,$2) %a

pgs.pm $1 $2 Zdobyte pieniadze: $ $+ %a - ogolem pieniedzy: $ $+ $pgs.cash($1,$2)

}

}

}

alias prs.tops {

if ($findtok(1st 2nd 3rd races finishes raceratio dmratio deathmatches dmwins points level lagger best score cash,$4,1,32)) {

var %a = 0,%b,%1 = 0,%2 = 0,%3 = 0,%x,%y,%z,%pwns = >

if ($4 == best) {

var %1 = 120000000, %2 = 120000000, %3 = 120000000,%pwns = <

}

while (%a < %loop) {

if ($4 == 1st) %b = $hget(prsrank,1 $+ $mta.nick($1,%a))

elseif ($4 == 2nd) %b = $hget(prsrank,2 $+ $mta.nick($1,%a))

elseif ($4 == 3rd) %b = $hget(prsrank,3 $+ $mta.nick($1,%a))

elseif ($4 == races) %b = $hget(prsstarts,race $+ $mta.nick($1,%a))

elseif ($4 == finishes) %b = $hget(prsfinish,$mta.nick($1,%a))

elseif ($4 == raceratio) %b = $round($calc($hget(prsfinish,$mta.nick($1,%a)) / $hget(prsstarts,race $+ $mta.nick($1,%a))),2)

elseif ($4 == deathmatches) %b = $hget(prsstarts,deathmatch $+ $mta.nick($1,%a))

elseif ($4 == dmwins) %b = $prs.totaldmwins($1,%a)

elseif ($4 == points) %b = $prs.points($1,%a)

elseif ($4 == level) %b = $prs.level($1,%a)

elseif ($4 == dmratio) %b = $round($calc($prs.totaldmwins($1,%a) / $prs.deathmatchstarts($1,%a)),2)

elseif ($4 == lagger) %b = $mta.avping($1,%a)

elseif ($4 == best) %b = $hget(prstimes,$replace($mta.race($1),$chr(32),$chr(45)) $+ $mta.nick($1,%a))

elseif ($4 == score) %b = $calc(($hget(prstemp,time $+ %a) * 50) - $hget(prstemp,extra $+ %a))

elseif ($4 == cash) %b = $pgs.cash($1,%a)

if (!%b) %b = 0

if ($mta.nick($1,%a) != $null) {

if (%b %pwns %1) {

%3 = %2 | %z = %y | %2 = %1 | %1 = %b | %y = %x | %x = $mta.nick($1,%a)

}

elseif (%b %pwns %2) {

%3 = %2 | %2 = %b | %z = %y | %y = $mta.nick($1,%a)

}

elseif (%b %pwns %3) {

%3 = %b | %z = $mta.nick($1,%a)

}

}

!inc %a

}

if ($4 == best) {

%1 = $prs.time(%1)

%2 = $prs.time(%2)

%3 = $prs.time(%3)

}

mta.text $1 $iif(%x == $null,1st $4 $+ : No-One,1st $4 $+ : %x $+ : %1)

if (%y) .timer 1 1 mta.text $1 2nd $4 $+ : %y $+ : %2

if (%z) .timer 1 2 mta.text $1 3rd $4 $+ : %z $+ : %3

}

else mta.pm $1 $2 Specify: 1st - 2nd - 3rd - races - deathmatches - finishes - dmwins - raceratio - dmratio - points - level - lagger - best - score - cash

}

Edited by Guest
Link to comment

well i had a quick look at the finish alias, and it looks fine.

i know its a silly question, but are u sure its turned on?

theres an on/off button on the dialog. try turning it off and on again if its on.

Link to comment

Can I ask you to write two commands for me? I can write simple commands, but not like this :(

!kill would kill a player, and

!say would display text in custom collor eg.

!say red Hello

Hello

Both commands only for admins lvl 7.

Thanks :)

Link to comment
Can I ask you to write two commands for me? I can write simple commands, but not like this :(

!kill would kill a player, and

!say would display text in custom collor eg.

!say red Hello

Hello

Both commands only for admins lvl 7.

Thanks :)

both not possible also

Link to comment

Yes I know about /me ;]

BTW. I tried to do script that after typing !player counts from 10 to 0 and kicks player called Player :P I tried to do it based on scripts I've found on forum but it counts to 0 but doesn't kick Player. Could anyone help? And of course if he change nick he won't get kicked.

Link to comment

in: on *:SIGNAL:mta.command:{

elseif (($3 == !player) && ($mta.level($1,$2) > 0)) playercheck $1- 

then at the bottom of the script,

alias playercheck {
 var %a = $mta.getid($1,Player)
 if (%a != $null) {
   mta.pm $1 %a Change Your Name Or Be Kicked! [15 secs]
   .timerkickplayer $+ %a 1 15 mta.kick $1 %a
 }
 else mta.pm $1 $2 Error: 'Player' Not Found.
} 

finally, in on *:SIGNAL:mta.part: {

.timerkickplayer $+ $2 off

i set it to 15 since i thought 10 secs might be a bit short to change ur name. hope this helps. (not tested so any probs, post here :) )

Link to comment

thats not what u asked for....

if u want it to do it without typing !player, add this at the top of alias newnick {

 if ($mta.nick($1,$2) == Player) {
   mta.pm $1 %a Change Your Name Or Be Kicked! [15 secs]
   .timerkickplayer $+ $2 1 15 mta.kick $1 $2
 }
 else .timerkickplayer $+ $2 off

and in on *:SIGNAL:mta.part: {

.timerkickplayer $+ $2 off

Link to comment

here is where you set up admin accounts

C:\Program Files\MTA San Andreas\server\mods\race\mtaserver.config

open with wordpad or notepad

scroll till you see

# Admin

# Required: No

# Purpose: Defines all the people in-server who can rcon_login to admin

# Format - Admin

# Notes:

# admin-level must not go above 5

# Names and passwords are case sensitive

#Admin Default password 5

Admin <<<<<<<<<<< add line here

this is how you set it up for the mta server and prs scripts add more lines for more admins

hope this helps.

Link to comment

Ok i changed the line in the config but it when i do /rcon_login it doesn't log me in. ie keeps saying failed to login even tho im typing it right.

Also how do i get this script to work on my server? because i didn't quite understand

Link to comment
here is where you set up admin accounts

C:\Program Files\MTA San Andreas\server\mods\race\mtaserver.config

open with wordpad or notepad

scroll till you see

# Admin

# Required: No

# Purpose: Defines all the people in-server who can rcon_login to admin

# Format - Admin

# Notes:

# admin-level must not go above 5

# Names and passwords are case sensitive

#Admin Default password 5

Admin <<<<<<<<<<< add line here

this is how you set it up for the mta server and prs scripts add more lines for more admins

hope this helps.

Admin

That line is on the wrong place

scroll all the way down

This stands there:

# RCON
# Required: No
# Purpose: Defines the admin level for . If this is not specified it is defaulted
#          Format - RCON 
# Notes:
#      must be between 1 and 5. If it is invalid, the level is defaulted
RCON kick 4
RCON ban 4
RCON mute 2
RCON unmute 2
Admin  <--- like this this sould work does for me

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...