-
Posts
976 -
Joined
-
Last visited
Everything posted by Scooby
-
ok im with u... so like whoever type !login has some form of admin? sounds kinda wierd but i think i get u.. what powers would this status have? whats to stop a cheater or anyone else abusing this? and yes i'll rewrite the notes thing for u.
-
New .mrc file. It all appears to work as in, commands, mta.txt (Error:) (Note Saved) it just doesnt create or save to the ini file. maybe ur looking in the wrong place for the file u shouldnt need to make it, it will make it for u... u could always add $scriptdir in front of the word mapnotes.ini so it says $scriptdirmapnotes.ini then it will save in the same dir as ur script, othewise it will save in the main mirc dir still not a clue about ur login, whatever ur thinking im sure its not possible... u cant PM ur passwords so i dont see how ur gonna work out who is real. i dont see the benefits of typing the word !login - does it need a password?
-
hmm im not really sure what use a !login command is if it doesnt do anything. did u add it to ur script or add it in a new .mrc file? it should work although i havent tested it. do u get a PM?
-
ok erm.. thats not even the same part, thats the rsdm part. too many questions in 1 go... u look like u answered them all anway. to make the PM's show in the chat as text, replace: mta.pm $1 $2 with: mta.text $1 And to thestrangestick im not sure if u were asking me anything
-
well its not an easy quick fix or i would have done it myself. if u want to have a go, it looks like all the info is there... im just too busy. sorry
-
Where to change? I'm new 2. var %a = $calc(($prs.players($1) - $mta.rank($1,$2)) * 50) ???? And How to change when write !money or !cahs it dont send you PM but says You have ......... ??? hmm i told u where to find it.... but if it helps, it should be on line 612 as for the !cash thing...im confused... it doesnt sent a pm... heres the line: elseif (($3 == !cash) || ($3 == !money)) { mta.text $1 $mta.nick($1,%a) $+ 's Cash: $ $+ $pgs.cash($1,%a) - Bidlevel: $pgs.bidlevel($1,%a) } as u can see, its not a PM.
-
U cant make a Login script since there are no PM's to absent players the add map notes script is easy enough tho although id suggest it this way so u can open the INI file direct and read the notes. (showing all notes in the server could be messy) this will save 1 message per person per map. on *:SIGNAL:mta.command: { if ($3 == !addnote) { if (!$4) mta.pm $1 $2 Error: !addnote <msg> else { !writeini -n mapnotes.ini $replace($mta.race($1),$chr(32),$chr(45)) $mta.nick($1,$2) $4- mta.pm $1 $2 Note Saved. } } } this will save peoples notes in an INI file called 'mapnotes.ini' like this: [drift] [uVA]Scooby=Last cp is buggy!!! dave=map is boring bob=this map sux!! [break] dave=boooooorrrrinnnggg stu=nice map!! driftking=no cps!!! hope this helps.
-
hmm i just answerd this 2 posts above what u wrote... the winning amount is the same for all types of map.
-
if ur not already using the racelist updater script, u might try that first. i did a quick search but couldnt find the original topic for it, but is posted here: http://forum.mtavc.com/viewtopic.php?f=54&t=20138&p=259117&hilit=updater&sid=16e2c78cd91a67eceab978118f4aff19#p259117
-
ok, open ur script and look for 'on *:SIGNAL:mta.finish: {' at the bottom of the alias u will see this part: if ($mta.rank($1,$2) < 7) && (%pgs == on) { var %a = $calc(($prs.players($1) - $mta.rank($1,$2)) * 50) if (%a > 0) { pgs.add $mta.nick($1,$2) %a pgs.pm $1 $2 Cash Earned: $ $+ %a - Total Cash: $ $+ $pgs.cash($1,$2) } } the var %a = line is the calc for how much u win... example with 6 players: %a = players - rank * 50 eg: %a = 6 - 1 * 50 so: %a = 5 * 50 %a = 250 for 5 players in the server and you coming first. u can just alter the '50' to what u like, 500 would make the changes u asked for. i think this should fix what ur asking.
-
Work?? give me an example of what ur trying to do... var %s = 0 < this would work, but im not sure if its what ur after... an example would help.
-
why are u using mta.text $1 $2 the $2 isnt needed. just add in: on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == thestrangestick) mta.text $1 God is here. Bow down! also in prs, u can use prs.level instead of gus.level or mta.level
-
basically when commands are added, they should be added in 2 stages, 1. a line in mta.command to activate the alias (this might be something like: elseif ($3 == !addcommand) addcommand $1- ), and 2. the new alias, (alias addcommand { info }) if people stick to this format then its so much easier to edit / fix / add / remove from scripts. im sure when the addcommand script was made, it was posted in both GUS and PRS formats.. maybe u should take a look at the original post, although i think the only main difference in both scripts is that in GUS, they use gus.getid, and in PRS, its prs.getid. either way its an easy enough task to make both work for either. saying that, all the command does is make it easy for u to add a basic text line to the script. eg: !bla > shows !bla bla bla bla in the chat personally, if u know anything about scripting at all, u can add the line to the existing script or to a new script easily enough without the hassle of using such a big script. u could make a new .mrc script and add the lines like this: on *:SIGNAL:mta.command: { if ($3 == !myword1) mta.text $1 MYTEXT1 elseif ($3 == !myword2) mta.text $1 MYTEXT2 elseif ($3 == !myword3) mta.text $1 MYTEXT3 } im sure u get the idea... just replace !myword for ur commands and the text for what u want it to say. what dead indside said is very true. although since GUS uses INI's, beginners find it easier to edit because they can open the INI and see/edit what they want. the problem is, the script is 1 big mess with many errors and the size of the INI's make the script very inefficient after prolonged use. People have been askin if i plan on making a PRS 1.4, and as of yet i have no plans to do so, unless i have any decent suggestions for things to make. i dont want to fill the script with useless stuff like !buyfreezes etc, but im happy to make a new release if i have sufficient things to add to make it worth while. feel free to keep posting your ideas here, once i feel theres enough i'll see what i can do with releasing 1.4
-
i think from the sounds of it, that ur doing it wrong. u could ask for what u want and someone will help, or even post an example of ur script here and someone will correct it. as for the added commands showing in !commands, they will only show if u add them. its not a hard job and should only take u a few seconds to add. in the PRS script, they start around line 1152, u can search for 'alias prs.commands {' and you'll see the lines, just add what u need to there.
-
coz this is not a command that is added to PRS... only in GUS... all changing map commands start with !map or !changemap, so to start a random map, type: !map random to start a certain map: !map
-
good good. np
-
ok, find this line: alias prs.mode !return $iif($hget(prsstats,mode $+ $replace($mta.race($1),$chr(32),$chr(45))) == $null,Race,$v1) change it to: alias prs.mode !return $iif($hget(prsstats,mode $+ $replace($mta.race($1),$chr(32),$chr(45))) == $null,Deathmatch,$v1) this will show maps as 'Deathmatch' if they havent been added as something else. theres one other part u will need to replace. find this in mta.command: elseif ($3 == !setmode) && ($prs.level($1,$2) == 5) { if ($4 == deathmatch) || ($4 == dm) { !hadd prsstats mode $+ %race Deathmatch mta.text $1 $mta.nick($1,$2) Set $mta.race($1) As A Deathmatch Map } elseif ($4 == rsdm) prs.rsdm $1- elseif ($4 == race) { !hdel prsstats mode $+ %race mta.text $1 $mta.nick($1,$2) Set $mta.race($1) As A Race Map } else mta.pm $1 $2 Error: specify: Race, Deathmatch or RSDM } and change it to this: elseif ($3 == !setmode) && ($prs.level($1,$2) == 5) { if ($4 == deathmatch) || ($4 == dm) { !hdel prsstats mode $+ %race mta.text $1 $mta.nick($1,$2) Set $mta.race($1) As A Deathmatch Map } elseif ($4 == rsdm) prs.rsdm $1- elseif ($4 == race) { !hadd prsstats mode $+ %race Race mta.text $1 $mta.nick($1,$2) Set $mta.race($1) As A Race Map } else mta.pm $1 $2 Error: specify: Race, Deathmatch or RSDM } i think that should do the trick. any problems, let me know.
-
if u read back, u can see it only writes to the main dir, so $scriptdir isnt really needed. also, why did u bother adding the $+ when its clearly not needed. $scriptdircommands.txt would work fine.
-
Well i can see u added a timer to your lines now, even so, my version is still a much better way of doing it. you can add a timer to the pm just the same, with something like: elseif ($3 == !addedcoms) { mta.pm $1 Currently Added Commands are: var %a = 1 while (%a <= $lines(Commands.txt)) { .timer 1 %a mta.pm $1 $2 $read($scriptdir $+ commands.txt,%a) !inc %a } } surely u can see this is a much better way of doing it. you can add lines to ur text file and it will show those too, but in your version, you would need to add more lines to make the pm's show.
-
maybe if u tried to learn how to script instead of using other peoples work then u might have a clue what ur doing. i guess not... well if u wrote the script... then surely u know how to fix it. as for MY script, if u want to make it so only level 5's can use it... well thats not rocket science... this is the line: elseif (($3 == !nextmap) && ($prs.level($1,$2) >= $prs.startmap($1))) prs.nextmap $1- im amazed u can write a script like u have, yet u cant edit 1 simple line... elseif (($3 == !nextmap) && ($prs.level($1,$2) >= 5)) prs.nextmap $1- i know u must read some of the other posts too, so why do u ask questions that have been asked before??? its not possible. as for ur own script... think about the difference between $2 and $2- ur line is: if ($3 == !id) mta.text $1 $mta.nick($1,%a) 's ID: $2- so if $1 is the server ID, $2 is YOUR ID, $3 is !id so u can now see why it says bob 's ID: 3 which will be wrong. u need something like : if ($3 == !id) mta.text $1 $mta.nick($1,%a) $+ 's ID: %a
-
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
-
[TbO]Gr00vE, sorry to say, but that script is laughable. (line 20 is missing btw, and 72 to 81) and it still has the errors from when it was first posted. why would u PM 100 lines of text at once? i guess ur learning still, but heres an idea for u. elseif ($3 == !addedcoms) { mta.pm $1 Currently Added Commands are: var %a = 1 while (%a <= $lines(Commands.txt)) { mta.pm $1 $2 $read($scriptdir $+ commands.txt,%a) !inc %a } } that does away with a few lines for u.
-
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 )
-
i see errors in it that could be why it doesnt work.
-
read back a few pages, its been asked and replied to a few times now... edit ur server config.
