-
Posts
976 -
Joined
-
Last visited
Everything posted by Scooby
-
dunno if u got this to work, or if u still need it... but try: on *:SIGNAL:mta.command: { if ($3 == !backup) { if ($mta.skin($1,$2).name != Cop) mta.msg $1 $2 Error: You Are Not A Cop! else { var %a = 0 while (%a < $mta.maxplayers($1)) { if (($mta.name($1,%a) != $null) && (%a != $2) && ($mta.skin($1,%a).name == Cop)) mta.msg $1 %a Backup Needed For $mta.name($1,$2) $+ , at $mta.area($1,$2) $+ ! !inc %a } } } }
-
hmmm sorry to say this, but ur script needs lots of work, i dont mean it to sound nasty. i can see u have taken parts from MY script and added them to yours, the spacing is terrible and there are bracket errors in it. u might want to try using mirc to edit your script, then u can use the { } button to check ur brackets, that will also sort out all the spacing, making it easier to see all those errors. some of the functions dont work fully. also, u might want to add something like: var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) at the top of mta.command so ur commands can be used on all players rather than just yourself. ur using hashes in parts of the script, but u havent created them. (if ur gonna rob stuff from my script, u could at least take all the parts needed) You have 'signals' inside aliases.... these wont work. the banname doesnt check on join if the name is banned. tempban doesnt work either. all in all, i think u need to have a good work thru it and fix all the errors. none of them are too major, but then these are all simple errors... anyone who knows even the basics in scripting should be able to spot them. if u need any help, feel free to ask.
-
ahh i see, when its disabled, u want it to still work, but show no admins, ok. this line i gave u: elseif ((!admin* iswm $3) && (%admin == on)) admincount $1- change it to this: elseif (!admin* iswm $3) { if (%admin == on) admincount $1- else mta.text $1 Current Admins: None. } try that one out.
-
the !count one is easy, im guessing for a freeroam map maybe? since i cant see the real use in a race, this is the easiest way: elseif (!count* iswm $3) { mta.text $1 Countdown: 3 .timer 1 1 mta.text $1 Countdown: 2 .timer 1 2 mta.text $1 Countdown: 1 .timer 1 3 mta.text $1 Countdown: Go Go Go..... } stick this in mta.command before the admin commands and it should be ok. second question, !icq - theres already !addo and !o to show a custom Own command, u can use this for anything, but if u feel u need more, u can copy the way it works and make another. it would be something like this: this in mta.command: elseif ($3 == !seticq) { if (!$4) mta.pm $1 $2 Error: !seticq <details> else { !hadd prsstats icq $+ $mta.nick($1,$2) $4- mta.pm $1 $2 Added: $4- } } elseif ($3 == !icq) mta.text $1 $mta.nick($1,$2) $+ 's ICQ : $iif($hget(prsstats,icq $+ $mta.nick($1,$2)) == $null,Not Yet Stored!,$v1) and as for wodo's request to make maps buyable etc, i never bothered with this since i didnt like the idea of being able to buy a map plus people are always changing maps and i just couldnt be bothered really. people would just buy every map and be so rich:) its not a major job to write it, i just never liked the idea. im sure the script wouldnt be that big, but i think a few checks might need to be added for if maps were removed, especially if u just spent a million dollars buying it. maybe i'll do it sometime, but dont hold ur breath, im busy trying to learn lua. i hope the other 2 are ok for u tho, any probs just let me know, coz i havent tested either.
-
ok u could do something like that, look in ur script, line 37 (or there abouts), find this line: elseif (!admin* iswm $3) admincount $1- and change it to this: elseif ((!admin* iswm $3) && (%admin == on)) admincount $1- elseif (($3 == !adminon) && ($prs.level($1,$2) > 0)) { set %admin on mta.pm $1 $2 Command: !admin enabled. } elseif (($3 == !adminoff) && ($prs.level($1,$2) > 0)) { set %admin off mta.pm $1 $2 Command: !admin disabled. } now u can turn the command on and off. hope this helps
-
i think he means like, an admin can type: !addcommand !lol laughs out loud then when people type !lol, it says laughs out loud !addcommand !web !addcommand !rules etc... this way, admins can easily add various commands to display custom text.
-
ahh i see, then the answer would be no. sadly im not good enough at lua yet to rewrite it. and theres so much packed into it, it would be a long job. maybe in time some scripts will be released, but i have nothing planned just yet.
-
oh, my "code" yeah sure, take it...
-
did u mean for mtasa:dm (lua) or mtasa:race (mirc) ? coz the above link was for a race script (mirc)
-
Im sure by now there lots of modified versions of PRS, not mayny people want to keep them standard, they like to customise them to suit their servers. i havent seen any of these available to download. maybe u should just edit the original?
-
no, when u ban an IP, it gets stored in a file within PRS and also in a ban file within MTA, but the ban file in MTA does not save, u lose all ur bans when ur server restarts. so when ur server restarts, but the backup file in PRS still holds the banned IP's, and when someone tries to rejoin who has previously been banned, it rebans the ip and kicks the player.
-
lol yeah backups are handy. the !addadmin, adds the person as an admin, it registers their NICK and IP, Id say its pretty safe if these dont match when they rejoin, they dont get their admin level. so other people wont be able to use their nick. it was added for adding admins via the script, of course, it will only work as long as their IP doesnt change. they wont need to login as long as everything is as it was when they left. The best way is to add people as amins in the config, where they need to login with rcon. the !addadmin was added later because people asked for it. Please feel free to use or not... u can still add them to ur config. All admins with a dynamic IP need adding to the config. any more questions???
-
hmm im not really sure what u mean. if u have deleted ur mtaserver.conf file which contains all the admin names and passwords (not sure why ), then none of the rcon admins can login. admins added with the script will still be ok, but u will need to readd the admins to the config if u want them to have admin again.
-
Theyre stored in prs.rank.txt if thats all u need to see, u can add this into mta.command: elseif ($3 == !cpoint) { if ($4 == $null) mta.pm $1 $2 Error: !cpoint <name> else mta.text $1 $4 $+ 's Points: $iif($hget(prsrank,$4) == $null,0,$v1) } this will enable u to type !cpoint to see any players points.
-
u need to name the timer in order to stop it, eg: .timerjob $+ $2 1 120 job.fail $1 $2 then u can use: .timerjob $+ $2 off to stop it. by using the $2 it sets the timer to the current player id, so u know which timer to stop. if u need any other help, just ask.
-
theres many stats, not sure what 'score' ur after, all data is saved in .txt files in ur mirc folder, they start with prs/pgs yes it is possible to convert it to show stats for all, but it depends what stats u want to see, most of the aliases use $mta.nick, which wont work if ur using $4, since the players name will not be in the list, basically, all the related aliases depending on what stats u want to see, need a little altering. it could take some changing, theres a lot of stats
-
most of the info is supplied with the script in a text file. basically u need to have 'mtama'(multi theft auto mirc admin) version 4.15 or better. load this script into mtama, fill out the dialog with ur info, click 'save' on both tabs, then restart mirc. if u cant do it, just post back here, saying where abouts ur getting stuck.. i'll reply or someone else will.
-
hi, sorry but its not set to show stats for players out of the server.
-
its text based, like a mirc script, so u can write it in notepad. u dont need anything to run the script apart from mta, it can all be server side:)
-
Will this change with DM? And will MTA need to communicate with mIRC, or will it be able to run scrips itself? offtopic: I joined in 2003, so "new user" is a totally wrong identification.....even if did not posted that much. yes this will change with dm. mesages can be displayed, even big lists. also, mtasadm wont use mirc. it uses lua. which is even better.
-
its not possible. all we have is the chatbox. the most common used commands are simple enough to remember. !ping !stats !top times etc... theyre just about the same on every server. theres more than 50 commands in this script. but each command that u type tells u what options u have and how to use the command, ie !ban on its own would tell u what to type to make the command work. i understand it can be a bit of a pain but sadly theres no other way to see the commands. ive never played 'wow', or many other online games but id imagine 100 commands would be just as hard to see in any game unless we could display a page on top listing several commands. i can see what ur getting at. like i said tho, not much else we can do... we only have a chat window, keypresses wont work since we only have mirc to work with.
-
well what ur asking is for me to take out a part in my script and give it to u, with a few minor modifications, which ive done... just paste all that in my previous post into a new .mrc file and its exactly what ur after... i think. i dont know what else u want from me (the only other possibility would be for me to copy/paste it into a .mrc file for u, which im sure anyone can do!) the commands are simple enough, !banword and !unbanword typing a banned word will get u a 60 secs mute.
-
-
well i guess the first time i posted this it wasnt enough... alias pgs.bannedwords { var %a = 1,%b = $3-,%c = $lines(pgs.banwords.txt) while (%a <= %c) { if ($read(pgs.banwords.txt,%a) isin %b) { mta.pm $1 $2 Auto-Muted: 60 secs - Reason: Vulgarity mta.mute $1 $2 .timer 1 60 mta.unmute $1 $2 !halt } !inc %a } } then u will also need to add some lines to mta.command to add and remove the banned words, since u cant find it in the original script, here it is... on *:SIGNAL:mta.command: { if (($3 == !banword) || ($3 == !unbanword)) { pgs.banword $1- } } on *:SIGNAL:mta.text: { pgs.bannedwords $1- } you will also need the main original alias... here it is: alias pgs.banword { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Level 5 Admins Only! elseif ($3 == !banword) { if (!$4) mta.pm $1 $2 Error: !banword else { var %a = 1,%b = $lines(pgs.banwords.txt) while (%a <= %b) { if ($4 iswm $read(pgs.banwords.txt,%a)) { mta.pm $1 $2 Error: Word Already Banned! !halt } !inc %a } !write pgs.banwords.txt $4 mta.text $1 $+(',$4,') added to banned words list } } elseif ($3 == !unbanword) { if (!$4) mta.pm $1 $2 Error: !unbanword else { var %a = 1,%b = $lines(pgs.banwords.txt) while (%a <= %b) { if ($4 iswm $read(pgs.banwords.txt,%a)) { !write -ds $+ $4 pgs.banwords.txt mta.text $1 $+(',$4,') removed from banned words list %a = $calc(%b + 2) } !inc %a } if (%a == $calc(%b + 1)) mta.pm $1 $2 Error: $4 Is Not Banned. } } } u can add this line 'pgs.bannedwords $1-' to mta.command too if u also want to ban words from commands. like i said before tho, this was written long ago, if u want a more compact newer version, the one lil toady posted would be better. hope this is ok for you now.