Guest Posted August 13, 2007 Share Posted August 13, 2007 Hi, I was looking to see if I couldnt get a couple ideas turned into scripts. I hope you dont mind, im not much of a scripter so I couldnt start on something to work with A script to record notes. !makenote !notes A script to allow players the ability to login. !login A script to allow the use of restricted commands once a player has logged in: !freeze !unfreeze !mute !unmute !kick !startrace !ban Samples: Notes: !makenote second from left broken spawn !makenote second last cp vehicle switch broken !notes second from left broken spawn by Player second last cp vehicle switch broken by Player Login: Player connected. !login Player has logged in! Joe connected. !login Player has been logged out. Youve been logged out. Joe has logged in! (Restricted access to one player at a time but otherwise left untouched as to allow any player even without level access ability to login) Possibly accompanied with a blacklist which would, obviously, disallow access. Commands: Player logged in! Commands: !freeze !mute !kick !startrace !ban !unfreeze !unmute !freeze Joe Joe frozen by Player[iRC Timer](5,4,3,2,1) Joe frozen by Console (All commands on a 5 second time with the exception of !ban) !ban Joe YOU CANT DO THAT! PLAYER! Link to comment
Scooby Posted August 13, 2007 Share Posted August 13, 2007 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. Link to comment
Guest Posted August 13, 2007 Share Posted August 13, 2007 Um, thanks. Not quite what I had in mind but very close. Might have a bit of a fiddle n see how it goes. Cheers Scooby. U cant make a Login script since there are no PM's to absent players You mean you cant PM a remote admin or mtama say a password cause its a non existant player? I know I only need it to login any player who types !login. No inis, IPs, mta.nicks, RCON_Login, passwords. I hope I didnt misread. Update: I cant get the note to store in the ini. mIRC is clean and both !addnote and !addnote ajwoe work. !writeini -n mapnotes.ini $replace($mta.race($1),$chr(32),$chr(45)) $mta.nick($1,$2) $4- Link to comment
Scooby Posted August 13, 2007 Share Posted August 13, 2007 hmm im not really sure what use a !login command is if it doesnt do anything. Update: I cant get the note to store in the ini. mIRC is clean and both !addnote and !addnote ajwoe work. 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? Link to comment
Guest Posted August 13, 2007 Share Posted August 13, 2007 !login would allow access to commands (which would need to be coded) such as !freeze, !mute, !kick. Its not for admins but pubilc access so it doesnt sit on an IP or if the player logged into RCON but if that player, no matter who it may be, typed "!login". Make sense? 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? 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. Link to comment
Scooby Posted August 14, 2007 Share Posted August 14, 2007 !login would allow access to commands (which would need to be coded) such as !freeze, !mute, !kick. Its not for admins but pubilc access so it doesnt sit on an IP or if the player logged into RCON but if that player, no matter who it may be, typed "!login". Make sense? 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? 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? Link to comment
Guest Posted August 14, 2007 Share Posted August 14, 2007 othewise it will save in the main mirc dir But of course, lol. Silly me 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? I dont know how to say. It doesnt need a password. Its not a !login or /msg Admin apple login. It doesnt require saved data like an admin script would. All itd do is login any, ANY player who types !login. No syntax. So if Joe joins the server who ive never met before, never played on the server before, has no data on in any inis or config files were to type !login it simply gives access to commands which would normally be considered for admins. Its not restricted so if another player, say a cheater were to join and !login itd log Joe off but log the cheater in. Understand? It doesnt distinquish between players but at the same time restricts the use of commands to the player whos currently logged in. Im pretty sure its doable just your reading into it a little too much Also could you make a couple changes to the add note script. Are you able to lift the restriction on one note per player per map? Remove the 'if (!$4) mta.pm $1 $2 Error: !addnote ' Set the 'mta.pm $1 $2 Note Saved.' to ' mta.text Note of recorded. Add a command to display the last three most recents notes as mta.text by Link to comment
Scooby Posted August 14, 2007 Share Posted August 14, 2007 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. Link to comment
Guest Posted August 14, 2007 Share Posted August 14, 2007 Yes, exactly Powers would simply be: !freeze, !mute, !kick, !ban, !startrace, !unmute, !unfreeze All on a slight timer and accompanied with a message frozen by before Player frozen by console. Also !ban wouldnt be an action but mta.text. As for abuse I was thinking of using a blacklist or limiting it to the player needing a specified number of visits, words or specific data as to reduce the possibility of some fool coming in and tearing it up. and yes i'll rewrite the notes thing for u. Thank you Link to comment
Recommended Posts