[RT]kooper Posted May 17, 2004 Share Posted May 17, 2004 thanks for replying your script sounds good, please keep me posted on its progress cos i wouldnt mind having a go at using it. i have been having a go at making it but i have only been irc scripting for 3 days so i get so far then my own script starts to confuse me [uVA]sc00by has been halping me out alot but i dont want to ask for hs help too much incase i become that realy anoying person who wont leave him alone, lol i will keep having a stab at it and if i can do it i will post it Link to comment
VCES>Puddy Posted May 17, 2004 Share Posted May 17, 2004 lol wen som1 says annoying, ryan gedds apears in my mind.... Link to comment
Oli Posted May 17, 2004 Share Posted May 17, 2004 lmao panther... he was in FMJ for like 2 days lol... damn he was like 21 questions kooper add me to ure msn ill give u a hand if u need it. Link to comment
VCES>Puddy Posted May 17, 2004 Share Posted May 17, 2004 Will there be any other admin consoles for MTA? or will there only be mIRC and server admin tool? /me thinks he needs a break from the PC Link to comment
VCES>Puddy Posted May 18, 2004 Share Posted May 18, 2004 ok, had my break lol is there a way to have a script to see if ppl puse during game play?, so u type !pause and it tells u who is paused. Link to comment
+FKU+VVolven Posted May 18, 2004 Share Posted May 18, 2004 A few days ago I started thinking, has anyone thought of making an away script? I.E. Player types !away, and set something under mta.join and mta.text to the effect of "$2 is AFK"? Link to comment
Oli Posted May 18, 2004 Share Posted May 18, 2004 yes my admin script uses an away system and a brb system... its even got a "going out for a beer" function. Not hard to script. I have finished work on a warn script now. If anyone wants it then just pm me, i cant be bothered to post it here atm, maybe if a lot of ppl want it i will. Link to comment
[TF]JoStud Posted May 19, 2004 Share Posted May 19, 2004 Why not just post it Oli, I'd like to see it/possibly use it. However, thats not my question... I want to know if you can do two server echoes with MTAMA at once... I can't get it to work, I just get both of the servers to echo in one channel... Link to comment
Oli Posted May 19, 2004 Share Posted May 19, 2004 ok here goes: The actual warn script is its own alias thats linked to: alias mta.warn { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 2 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 2 } } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 } } else { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 1 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 1 } } } else { mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn } } Then I have under mta.join: elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) mta.kick $1 $2 } Under mta.text: elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.warn $1- } elseif ($3 == !warnings) { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { mta.say $1 $mta.name($1,$4) has been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { mta.say $1 $mta.name($1,$4) has been warned 2 times. } else { mta.say $1 $mta.name($1,$4) has been warned 0 times. } } else { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. } else { mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. } } } elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { if ($4 != $null) { mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 remini "MTAwarn.ini" main $4 remini "MTAwarn.ini" joinkick $4 remini "MTAwarn.ini" reasons $4 } else { mta.say $1 Syntax: !erasewarn } } The !warn part is setup so that only admins using my particular admin script can use it, you can customise that part however you like. Players can find out how many times they have been warned by typing !warnings or can find out how many times another player has been warned by typing !warnings . You can also specify reasons people were warned, ie: !warn 6 speak english , and this would add the reason to the ini as a record. It remembers people who was warned, and kicks them automatically on entry to the server if they were warned 3 times. You can remove people using !erasewarn and this will delete their warn history. (note: the erasewarn function is based on name not ID number). I wrote this code only today, so I will be updating it myself over the next few days.. if i have any large additions ill post them, otherwise you can just modify it yourself to suit yourself. Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 sweet, o yea (FKU)VVolven glad to hear u was thinking lol Link to comment
Vincent Posted May 19, 2004 Share Posted May 19, 2004 Oli, is the !warn function is based on name or ID number Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 i would say ID or it wouldnt no how meny warnings the player has had Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 ok, realy kewl script m8, one thing, i did it on my self and now my name gets kicked all the time errrrrrr, how should i stop it? Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 lol, found my name n deleted it of the ini /me takes a note not to do it again so Oli, wut other script u got? well not ALL of them, we would be here all day! lol but u got any good ones that I and or others can have? Link to comment
Oli Posted May 19, 2004 Share Posted May 19, 2004 well ive got some which im keeping just at the FMJ server atm cos they are constantly being updated... infact ive already updated that warn one too, but not significantly yet, ive just got it so that when i do !ban 5 stop cheating it adds a warn of level 4 to the mtawarn.ini and then instantly bans the people of level 4 warn on entry to the server, this is useful to help against people with proxies. Ill have a look through my script and see if there is anything useful i can extract from it for u guys. And yes panther, u can just remove warns manually from the ini aswell Oh, finally, yes the warn is based on ID number... "!warn 5 no spawnkilling" but the erasewarn is based on name "erasewarn warnedperson" Oh one thing i might mention is that ppl with spaces in their names can mess this script up a bit as mIRC parses the two parts as seperate things. Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 Just for the few people with out the no spaces script thinggy here it is, i dont no how to make the nice little box cuz i am new to this forum alias mta.join elseif ( $chr(32) isin $mta.name($1,$2) ) { mta.say $1 $mta.name( $1 , $2 ) , spaces are not allowed in nickname. Please remove it before joining mta.kick $1 $2 } That would kick anyone and everyone with spaces in there name o yea Oli, how BIG is your script Link to comment
Oli Posted May 19, 2004 Share Posted May 19, 2004 my script is currently: 96.3KB using 2318 lines. Link to comment
VCES>Puddy Posted May 19, 2004 Share Posted May 19, 2004 OMG! mine is only 36.0kb! and i cant be bothered to find out how meny lines but over 2000!!!! wo!!! lol Link to comment
VCES>Puddy Posted May 20, 2004 Share Posted May 20, 2004 Oli, how do u find things in ya script, if it that nig u would be there ALL day lmao Link to comment
Aeron Posted May 20, 2004 Share Posted May 20, 2004 Please the topic like it should: Only script questions and answers No spam.. Thx, Aeron Link to comment
VCES>Puddy Posted May 21, 2004 Share Posted May 21, 2004 sorry Aeron, Can anyone help me out? I have to logins, one admin and one member on my script, both read different INI files else { %isadmin = $readini( "MTAscript.ini", admins, $mta.name( $1 , $2 )) if (%isadmin) { mta.say $1 The name $mta.name( $1 , $2 ) is a Server Admin Name. Please Login to use Features! set %badadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] $2 .timeradmin 1 30 mta.badadmin $1 $2 } } else { %ismember = $readini( "members.ini", members, $mta.name( $1 , $2 )) if (%ismember) { mta.say $1 The name $mta.name( $1 , $2 ) is a server member Name. Please Login now! } } The problem is that only one of them works,what ever is the top one will work, so i got the admin one at the top, wen u join server it says please login bla bla bla, but if ur a member and join server then it dosnt work! can som1 help me out? Link to comment
Harry Posted May 21, 2004 Share Posted May 21, 2004 Hmm this script looks familiar.. Anyway, because you're using 'else' in the first case without any 'if' statement, there can be no second 'else'. This should work: else { %isadmin = $readini( "MTAscript.ini", admins, $mta.name( $1 , $2 )) %ismember = $readini( "members.ini", members, $mta.name( $1 , $2 )) if (%isadmin) { mta.say $1 The name $mta.name( $1 , $2 ) is a Server Admin Name. Please Login to use Features! set %badadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] $2 .timeradmin 1 30 mta.badadmin $1 $2 } else if (%ismember) { mta.say $1 The name $mta.name( $1 , $2 ) is a server member Name. Please Login now! } } If you didn't remove all the indenting, this could be easily seen. Link to comment
VCES>Puddy Posted May 21, 2004 Share Posted May 21, 2004 Yep! it worked ty for the help m8 Link to comment
Quig Posted May 25, 2004 Share Posted May 25, 2004 hi i'm lookin for any new scripts. now i can't write them myself yet but i'm teaching myself so i will be able to soon, but until then i would appreciate alittle help i have all the basic scripts and the ones i've found on here so if anyone has some they could send to me that would be great.. and if anyone knows about any good books or site that could help with understanding how to write this stuff pls post a link thx Link to comment
Recommended Posts