Ford Posted July 11, 2007 Share Posted July 11, 2007 ok the points line would show something like:0 $mta.nick($1,%a) $+ 's Pointsmake 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
Scooby Posted July 11, 2007 Author Share Posted July 11, 2007 well if u removed the 's from the lines, u also need to remove the $+ Link to comment
Ford Posted July 11, 2007 Share Posted July 11, 2007 Yea, now it works. But still I don't get money for winning the race Link to comment
Scooby Posted July 11, 2007 Author Share Posted July 11, 2007 are u getting any errors in ur main mirc window? maybe u broke something else? post ur mta.finish alias and i'll take a look. Link to comment
Ford Posted July 11, 2007 Share Posted July 11, 2007 post ur mta.finish alias and i'll take a look. Meaning what? There's no errors in Mirc window. Link to comment
Scooby Posted July 11, 2007 Author Share Posted July 11, 2007 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
Ford Posted July 11, 2007 Share Posted July 11, 2007 (edited) 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 July 11, 2007 by Guest Link to comment
Scooby Posted July 11, 2007 Author Share Posted July 11, 2007 yes, but can u edit ur post and repost it with html disabled below, the forum messes the code up otherwise. Link to comment
Ford Posted July 11, 2007 Share Posted July 11, 2007 Here you have a whole file: http://rapidshare.com/files/42329039/MT ... 3.mrc.html Link to comment
Scooby Posted July 11, 2007 Author Share Posted July 11, 2007 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
Ford Posted July 12, 2007 Share Posted July 12, 2007 Yea, everything works perfect One more question, which file do I have to edit to add admins? Link to comment
Scooby Posted July 12, 2007 Author Share Posted July 12, 2007 read back a few pages, its been asked and replied to a few times now... edit ur server config. Link to comment
Ford Posted July 13, 2007 Share Posted July 13, 2007 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
lil Toady Posted July 14, 2007 Share Posted July 14, 2007 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
DJScripts Posted July 14, 2007 Share Posted July 14, 2007 well only 2 collers are avalible the normal Admin Orange and the /me Pink so when you make the command !say like this mta.text $1 /me then it would sow up pink this just a little thing that almost everyone nows Greetzaz. DJFrankie Link to comment
Ford Posted July 14, 2007 Share Posted July 14, 2007 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 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
Scooby Posted July 14, 2007 Author Share Posted July 14, 2007 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
Ford Posted July 14, 2007 Share Posted July 14, 2007 Doesn't work for me If I join as a Player nothing happens, no pm, no kick. Help Link to comment
Scooby Posted July 14, 2007 Author Share Posted July 14, 2007 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
IceMan Posted July 18, 2007 Share Posted July 18, 2007 I know this might sound stupid but how do i get this to work on my server? and how to set up a admin account for myself thanks Link to comment
KWKSND Posted July 18, 2007 Share Posted July 18, 2007 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
IceMan Posted July 18, 2007 Share Posted July 18, 2007 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
Guest Posted July 18, 2007 Share Posted July 18, 2007 here is where you set up admin accountsC:\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
Recommended Posts