-
Posts
976 -
Joined
-
Last visited
Everything posted by Scooby
-
ok i downloaded ur script, moved some parts around and fixed a few bracket errors, most of it should work now, although theres still a few errors in ur aliases that i think u need to work on. u should remove the prs parts too, since they will only work while ur running prs. all in all the script is very basic but if u keep at it im sure ul pick it up a bit more Also, a lot more work is needed before u can really call it a working release, The Ban and VoteBan mainly. Good Luck with the rest:) on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($3 == !time) mta.text $1 Time: $time (GMT) elseif ($3 == !date) mta.text $1 Date: $date elseif ($3 == !checkmap) mta.text $1 Found: $mta.map($1) elseif ($3 == !maps) mta.text $1 Total Maps: $mta.races($1) elseif ($3 == !name) mta.text $1 Map Name: $mta.race($1) elseif ($3 == !info) mta.text $1 W&C v1.0 Scripts! elseif ($3 == !id) mta.text $1 Map Id: $mta.races($1,$mta.race($1)) $+ . elseif ($3 == !players) mta.text $1 Total players: $mta.tot($1) elseif ($3 == !vban || !voteban iswm $3) wac.vban $1- elseif ($3 == !back) { if ($timer($+(afk,$1,$2))) { $+(.timerafk,$1,$2) off mta.pm $1 $2 You are no longer undergoing an afk check and wont be kicked. } } if ($mta.level($1,$2) >= 3) { elseif ($3 == !block) mta.text $1 Dont Block or be freezed $mta.nick($1,%a) $+ ! elseif ($3 == !kill) mta.text $1 Type /kill $mta.nick($1,%a) $+ ! elseif ($3 == !afk) { if ($mta.level($1,%a) > $mta.level($1,$2)) mta.pm $1 $2 Error- You cannot use $3 on someone with higher level. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else { mta.text $1 $mta.nick($1,%a) is undergoing an AFK CHECK and has 20 seconds to respond. mta.pm $1 %a Please write !back if you are there, 20 seconds untill kick. $+(.timerafk,$1,%a) mta.kick $1 %a } } } elseif ($3 == !addcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level elseif ($4 == $null) || ($5 == $null) || ($6 == $null) mta.pm $1 $2 Error: Do !cmdhelp for codes to use else { if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) >= 5) { !writeini -n slrcommands.ini command $5 $6- !writeini -n slrcommands.ini commands $5 $4 mta.pm $1 $2 Your Command Has Been Added } } } elseif ($3 == !-) { var %b = $readini(slrcommands.ini,commands,$4) if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: The Command $4 Has Not Been Added Yet. if (player isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (player isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (%b == pm) { mta.pm $1 $2 $readini(slrcommands.ini,command,$4) } elseif (%b == text) { mta.text $1 $readini(slrcommands.ini,command,$4) } } elseif ($3 == !cmdhelp) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level else { if ($mta.level($1,$2) > 0) { mta.pm $1 $2 !addcmd .timer mta.pm $1 $2 Codes: pm (pm the text to the player) - text (say the text in text) - player (returns a players nick ie/ DirtBikeRider) - players (returns a players nick with a s on the end ie/ DirtBikeRiders) } } } elseif ($3 == !remcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: This Command Has Allready Been Removed elseif ($4 == $null) mta.pm $1 $2 Error: !remcmd else { if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) >= 5) { !remini -n slrcommands.ini command $4 !remini -n slrcommands.ini commands $4 mta.pm $1 $2 The Command $4 Has Been Removed } } }}on *:SIGNAL:mta.text: { if ($3 == hello) mta.text $1 Hello PPL. elseif ($3 == hi) mta.text $1 Hi All. elseif ($3 == bye) mta.text $1 Bye Peeps. elseif ($3 == brb) mta.text $1 /me $mta.nick($1,$2) Will be Right back, Reason: $4 $+. elseif ($3 == afk) mta.text $1 /me $mta.nick($1,$2) Will be Afk, Reason: $4- $+. elseif ($3 == nickname) mta.text $1 Your Nickname: $mta.nick($1,$2) $+ . elseif ($3 == info) mta.text $1 Races: $mta.races($1) Race on: $mta.race($1) $+ .}on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == player) { mta.pm $1 $2 Please change your nick 60 seconds or automaticaly kicked. .timer 1 60 mta.kick $1 $2 mta.text $1 Nickname - Player Kicked: Not changing nick. }}on *:SIGNAL:mta.startrace: { mta.text $1 Map Started! $mta.race($1) $+ . mta.text $1 Map ID: $mta.races($1,$mta.race($1)) $+ .}on *:SIGNAL:mta.death: { mta.pm $1 $2 Auto Message: You may now grab a cola!} alias wac.vban { ;this alias needs work... im not doing it for u !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !voteb If You Want $mta.nick($1,%a) Banning. Reason: $4- $iif($4- == $null, Not Set) $+ . mta.text $1 Votes Need to ban: $ceil($calc($mta.players($1) / 2)) if ($3 == !voteb) { mta.text $1 Total Votes for banning: $numtok($hget(wacmain,bans),41) $+ / $+ $ceil($calc($mta.players($1) / 2)) wac.voting $1- }} alias wac.voting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($numtok($hget(wacmain,bans),41) == $ceil($calc($mta.players($1) / 2))) { mta.text $1 Banning $mta.nick($1,%a) $+. mta.ban $1 %a }} alias wac.betting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) ; the line below needs work, there is no -1 in mta.getid, modify the line above if u need to check for absent id's if (%a == -1) mta.pm $1 $2 Error - Absent ID else { $+(.timerbet,$1,%a) mta.text $1 Place your Bets! mta.pm $1 $2 You have betted on $mta.nick($1,%a) to win, type !unbet to unbet before the time runs out! $+(.timerbet,$1,$2) off mta.text $1 No more bets! }};Thanks [uVA]Scooby & [uVA]Bart
-
no problem, i would have replied sooner if u had posted in the prs topic tho i dont always look thru all the new posts.
-
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
-
well u have to bare in mind that everything u add in mta.text, that it gets read by mirc everytime someone types some text, so if u fill it up with loads of commands that could/should be added in the command section, it will slow the response time. however, if its just a few lines, u wont even notice it. usually ul have some checks in mta.text, so if theyre added efficiently u should be fine.
-
what error are u getting with it?
-
do u have msn? if u want it'll be faster for me to help u there.... mine is: [email protected]
-
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.
-
well if ur interested in learning, theres a scripting.html file containing just about all of the commands, it came with mtama, if u cant find it... get it here: http://home.deds.nl/~aeron/mtama/4.0/ in this file u can see what commands are availble and how to use them. so for the command ?startrace, u would look in that html file and find the command, it looks like this: /mta.startrace This start race with RaceID on the server. since im sure u dont want to specify the race ID, u need to use another command to 'get the race id from the name given' the command as it stands would look like: if ($3 == ?startrace) mta.startrace $1 $4 $4 is the race ID u specify so to make this work how u want, u need to use another command, it would look like this: if ($3 == ?startrace) mta.startrace $1 $mta.races($1,$4-) u can now add this line to the ?command script i posted earlier. i hope u understand all this... with a little practice, u should be able to make some more baisc commands. ?nextmap is a little more tricky but im sure ul get there with a little work:)
-
the spam check line isnt originally added to mta.command, but u could easily just paste it to the top of mta.command, its this part: var %a = $calc($iif($hget(prstemp,$2) == $null,0,$v1) + 1) !hadd prstemp $2 %a if (%a == 3) mta.pm $1 $2 WARNING - DO NO SPAM!!! elseif (%a == 4) { mta.text $1 $mta.nick($1,$2) Auto-Muted: 60 secs - Reason: Spamming mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 } !hadd -u2 prstemp $2 %a add it as the very first line in mta.command.
-
try this... on *:SIGNAL:mta.text: { if ($left($3,1) == $chr(63)) { if ($3 == ?blaaaaa) mta.text $1 blaaaaa!!! elseif ($3 == ?moo) mta.text $1 Moooooo!!! ;add ur commands beginning with a ? here... } }
-
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?
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
theres a few on the forums, the one by lil toady seems the best, no point making a new one. just download it and run it alongside.
-
the download still works for me
-
the command is: !addcash if u type an incorrect name, then it will give it to u. feel free to add more checks, it was just something a posted quick:)
-
hi, only just noticed this, u should post PRS related stuff in the PRS topic, then i will reply the same day. ok, im not sure if u still need this... but just in case u do. add this in mta.command. (below the admin level 1 commands), if ur not sure where, add it below this line: elseif ($3 == !setwarnlimit) prs.setwarnlimit $1- elseif ($3 == !addcash) pgs.addcash $1 $2 $mta.nick($1,%a) $4 then at the very bottom of ur script add this: alias pgs.addcash { if ($prs.level($1,$2) < 5) mta.pm $1 $2 Error: Level 5 command. elseif ($4 !isnum) mta.pm $1 $2 Error: Invalid Amount. else { mta.text $1 $mta.nick($1,$2) Is Giving $3 $ $+ $4 pgs.add $3 $4 } } i would advise adding the same for taking cash away too... just in case u ever make a mistake. u can either use !givecash bla -1000 or add the same script again with a few minor mods, and using pgs.sub instead of pgs.add. if u need anymore help or minor upgrades adding plz ask in the PRS topic. any probs, just let me know.
-
if PM'd u showing ur error in ur config.
-
ur connected to ur server with mtama 4.15?
-
$mta.level in MTA:Race only has 5 admin levels, so the easiest way to do it is to have a separate file, eg, a basic .INI with the admin names and levels. this way, once logged in, u can read the current admin level from that file. this is all pretty easily done, $mta.level would just need replacing in the script to read the new admin levels, also all the commands would need the admin levels altering to match, since in the scripts they usually only go from 1 to 5 and ur gonna need 1 to 10.
