Shib Posted June 20, 2004 Share Posted June 20, 2004 EDIT :: I sorted my script. Is it possible to have all the games modes in one script coz i tryed it and makin seperations and everything but i can't do it. Any help? Link to comment
Cube Posted June 20, 2004 Share Posted June 20, 2004 fastphp Ok next problem If i do !rang Then i see <(ZC)James - Rang: Server Admin> <(ZC)James - Rang: Clan Member> But now i want to do it by someone els i want to do !rang Then i want to ask is it poseble that if someone NOT an admin is and NOT an clan member the server say Rang: Guest Code: ; RANG SCRIPT elseif ($3 == !rang || $3 == !status || $3 == !level ) { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } if (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } } Can someone say how i can do that. Try this: if ($3 == !rang || $3 == !status || $3 == !level ) { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } if (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } } it should work. Link to comment
Harry Posted June 20, 2004 Share Posted June 20, 2004 if ($3 == !rang || $3 == !status || $3 == !level ) { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } if (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } } Depending on what you want, i suggest using consequently $2 OR $4, or use 'elseif; in front of the first 'ZC isin' .. In this way, double names can occur. With elseif they won't Link to comment
OpiuM. Posted June 20, 2004 Share Posted June 20, 2004 altho i could go in ur server under ZaCk and get specil treatment supposedly Link to comment
Aeron Posted June 20, 2004 Share Posted June 20, 2004 altho i could go in ur server under ZaCk and get specil treatment supposedly idiot "ZC" not "Z" and "C" Link to comment
*SmartiE* Posted June 20, 2004 Share Posted June 20, 2004 I have my admin alert script so it plays a sound is there anyway i can get it to stop playing after 5 seconds elseif ($3 == !admin) { mta.say $1 //// $mta.name( $1 , $2 ) needs assitance \\\\ mta.say $1 The Admins Have been Alerted Please Be Patient /run C:\Program Files\mIRC\MTA.wav Link to comment
Harry Posted June 20, 2004 Share Posted June 20, 2004 There isn't if you're using the run command. You can try to find the winamp plugin, that one has a stop. Or you can run a command that only plays the wave 1 time BTW, you're gay sig has errors Link to comment
Cube Posted June 20, 2004 Share Posted June 20, 2004 If I have a script which it's possible connect only one person from one IP address (reason: internal IP). It is possible in second script which enabled connect more then one person from selfsame IP, but I don't removed a first? Link to comment
[FMJ]Regime Posted June 20, 2004 Share Posted June 20, 2004 Hello I have problem with one script: alias mta.pm { if ($3- == admin ) { mta.say $1 Admin rights given to $mta.name($1-2) writeini $+(",$scriptdir,$1.ini") ID $+ $2 op 1 } } and in mta.txt alias mta.text { if ($readini($scriptdir $+ $1.ini,ID $+ $2,op)) { if ($3 == !kick) mta.kick $1 $4 if ($3 == !ban) mta.ban $1 $4 } } My problem is that when I logging an admin say:"Admin rights given to Unknown" And then i can kick player but i can't use the rest of the scripts Can some1 halp me ? In case you already figured this 1 out yourself, plz ignore this post.. if not.. 1st question i think is awnsered already... 2nd question, easy solution: Just place the mta.text part UNDER your other mta.text scripts instead of at the top of the alias... Works for me Link to comment
Oli Posted June 21, 2004 Share Posted June 21, 2004 heyim trying to make a script so someone can type !note and it gets recorded in a ini this is what ive got if ($3 == !note) { $writeini("mtascript", notes, $mta.name($1,$2) $4-) mta.say $1 noted but it dont work can someone tell me whats wrong please i think ive done it wrong anyway[quo if ($3 == !note) { $writeini("mtascript", notes, $mta.name($1,$2) $4-) -missing .ini- mta.say $1 noted -script not closed- elseif ($3 == !note) { writeini "mtascript.ini" notes $mta.name( $1 , $2) Note $4- mta.say $1 noted } Why dont u try this: if ($3 == !rang || $3 == !status || $3 == !level ) { if ($4 != $null) { if ($mta.name($1,$4) == unknown) { mta.say $ Player ID not present } elseif ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $4 ] ] == true ) { mta.say $1 $mta.name($1,$4) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } else { mta.say $1 $mta.name($1,$4) - Rang: Player } } else { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } elseif { mta.say $1 $mta.name($1,$2) - Rang: Player } } } Link to comment
VCES>Puddy Posted June 21, 2004 Share Posted June 21, 2004 heyim trying to make a script so someone can type !note and it gets recorded in a ini this is what ive got if ($3 == !note) { $writeini("mtascript", notes, $mta.name($1,$2) $4-) mta.say $1 noted alias mta.text { elseif ($3 == !note) { writeini "mtascript.ini" notes $mta.name($1,$2) $4- mta.say $1 noted } elseif ($3 == !notes) { mta.say $1 $mta.name($1,$2) $+ 's notes: $readini(MTAscript.ini, notes, $mta.name($1,$2)) } Makes you able to read the notes after. ( ty Oli for helping ) Link to comment
Harry Posted June 21, 2004 Share Posted June 21, 2004 Ok.. but this way you can only save 1 note for a person.. would that be enough? Link to comment
fastphp Posted June 21, 2004 Share Posted June 21, 2004 heyim trying to make a script so someone can type !note and it gets recorded in a ini this is what ive got if ($3 == !note) { $writeini("mtascript", notes, $mta.name($1,$2) $4-) mta.say $1 noted but it dont work can someone tell me whats wrong please i think ive done it wrong anyway[quo if ($3 == !note) { $writeini("mtascript", notes, $mta.name($1,$2) $4-) -missing .ini- mta.say $1 noted -script not closed- elseif ($3 == !note) { writeini "mtascript.ini" notes $mta.name( $1 , $2) Note $4- mta.say $1 noted } Why dont u try this: if ($3 == !rang || $3 == !status || $3 == !level ) { if ($4 != $null) { if ($mta.name($1,$4) == unknown) { mta.say $ Player ID not present } elseif ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $4 ] ] == true ) { mta.say $1 $mta.name($1,$4) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } else { mta.say $1 $mta.name($1,$4) - Rang: Player } } else { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } elseif { mta.say $1 $mta.name($1,$2) - Rang: Player } } } Hi all If i use these code ; RANG SCRIPT elseif ($3 == !rang || $3 == !status || $3 == !level ) { if ($4 != $null) { if ($mta.name($1,$4) == unknown) { mta.say $ Player ID not present } elseif ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $4 ] ] == true ) { mta.say $1 $mta.name($1,$4) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } else { mta.say $1 $mta.name($1,$4) - Rang: Player } } else { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } elseif { mta.say $1 $mta.name($1,$2) - Rang: Player } } } and he is not member/admin person then say mirc * /elseif: invalid format (line 237, scripts.mrc) Link to comment
Harry Posted June 21, 2004 Share Posted June 21, 2004 Change the last 'elseif' to 'else' Link to comment
fastphp Posted June 21, 2004 Share Posted June 21, 2004 YES Thanks [FMJ]Oli, and harry it works Grz Michael / (ZC)James Link to comment
(cc)Rambo Posted June 21, 2004 Share Posted June 21, 2004 Have someone a working !timeban script for me ?? Link to comment
fastphp Posted June 21, 2004 Share Posted June 21, 2004 There is a timeban on this forum AND is working Link to comment
Cube Posted June 21, 2004 Share Posted June 21, 2004 If I have a script which it's possible connect only one person from one IP address (reason: internal IP). It is possible in second script which enabled connect more then one person from selfsame IP, but I don't removed a first?? Link to comment
Harry Posted June 21, 2004 Share Posted June 21, 2004 If I have a script which it's possible connect only one person from one IP address (reason: internal IP). It is possible in second script which enabled connect more then one person from selfsame IP, but I don't removed a first?? Hmm.. Can you be a bit more specific? You're saying you ahve a clonkicking script, but you want to allow clones? Or what? Link to comment
Cube Posted June 22, 2004 Share Posted June 22, 2004 Yes the first scripts it clone kicker . Link to comment
Oli Posted June 22, 2004 Share Posted June 22, 2004 seriously... i dont get what ure asking.. u make very little sense Link to comment
Cube Posted June 22, 2004 Share Posted June 22, 2004 Yes, i know..and my English.. but i don't know.. because this not mine scripts. I have to give admin other server (i am not there admin) such scripts which enabled connect to server two person from one IP adress (i have internal IP, and i want play in one server with me friend from my net). Admin that server has such scripts witch permit connect only one person fron one IP (and I and me friend cannot play together)(this scripts is probably clones kicker). I want such script (second) witch avoid clones kickes for my IP adress (and I with me friend can play together) ?? Can you help me ?? Ahh.. sorry for my English.. Link to comment
Oli Posted June 22, 2004 Share Posted June 22, 2004 if you arnt an admin then you cant avoid the scripts in the server, and u cant make a script for the mta client which avoids cush things Link to comment
Cube Posted June 22, 2004 Share Posted June 22, 2004 Of coure Oli but admin that server saw me may if I sellte such script which avoid clone kicker (only one IP) it he place this script on his serv and I can play for my friend together. Link to comment
Recommended Posts