Oli Posted April 25, 2004 Share Posted April 25, 2004 in the admin script i have if a votekick is in progress and ure an admin u can type !cancel at any point and it cancels it which is a handy feature Link to comment
OpiuM. Posted April 25, 2004 Share Posted April 25, 2004 yes, but mine combines te ingame admin script, and the vtekick, so u can stop it, and kick the idiot at the same time, without leaving the game...its just nifty is all Link to comment
Quig Posted April 25, 2004 Share Posted April 25, 2004 hey opium i'm new to the making script thing and i wanna try it out.... what program do i use to try your script the u posted Link to comment
OpiuM. Posted April 25, 2004 Share Posted April 25, 2004 first u need a server then u need the mIRC MTA admin tool 2.004 or igher i think, then u open script.mrc (C;//program files/mIRC/script.mrc) with notepad, then where u see the aliases add that shit, but take out the liases in the page, that were already there Link to comment
[TF]JoStud Posted April 26, 2004 Share Posted April 26, 2004 Okay, I would like a script to kick those who insult others. Link to comment
OpiuM. Posted April 26, 2004 Share Posted April 26, 2004 easy, i would post, but...ahhh what the hell alias mta.text { if ($3 == insult) { mta.say $1 No insults please. mta.kick $1 $2 } if i am wrong, and it dosnt work, post here again, or correct me and of course change the "insult" to whatever word u DONT want to be said Link to comment
Aeron Posted April 26, 2004 Share Posted April 26, 2004 easy, i would post, but...ahhh what the hell alias mta.text { if ($3 == insult) { mta.say $1 No insults please. mta.kick $1 $2 } if i am wrong, and it dosnt work, post here again, or correct me and of course change the "insult" to whatever word u DONT want to be said alias mta.text { if (insult isin $3-) { mta.say $1 No insults please. mta.kick $1 $2 } Link to comment
OpiuM. Posted April 26, 2004 Share Posted April 26, 2004 Thanks, but was i wrong, or is the the proper way :P Link to comment
[TF]JoStud Posted April 27, 2004 Share Posted April 27, 2004 Is there a way to delay a function? In this code, I want to delay the if () part. alias mta.join { ;Is there a way to delay this next function with a timer? if ( { mta.say $1 } That code would simply be a delayed entry message, but for what I want to do I need to delay some functions. Sorry, I'm learning this scripting thing yet... Link to comment
Aeron Posted April 27, 2004 Share Posted April 27, 2004 Is there a way to delay a function?In this code, I want to delay the if () part. alias mta.join { ;Is there a way to delay this next function with a timer? if ( { mta.say $1 } That code would simply be a delayed entry message, but for what I want to do I need to delay some functions. Sorry, I'm learning this scripting thing yet... alias mta.join { if ( { !.timer mta.say $1 } } Link to comment
Quig Posted April 27, 2004 Share Posted April 27, 2004 i'm having a problem with the counddown script... i put in all the info below alias mta.text but now no matter what i type everything intiates the cowndown pls hlp Link to comment
Quig Posted April 27, 2004 Share Posted April 27, 2004 k nvrmnd i figured it out but i have one question for NE1..... what can i insert into the stat script that will allow me to see the stats on other players? Link to comment
OpiuM. Posted April 27, 2004 Share Posted April 27, 2004 thats pretty simple, but im in school, and i dont have a script to write on...i dont know the commands by heart, so if aeron takes care of ya b4 i get home....good for you Link to comment
Guest Posted April 27, 2004 Share Posted April 27, 2004 at the end of mta.kill how could i make it go onto my own function called test Link to comment
[TF]JoStud Posted April 27, 2004 Share Posted April 27, 2004 Aeron, the problem with that is it checks the condition when the player joins, not after a set amount of time... it just executes the timer right as the player joins. I want it to delay the whole function... not just the message. So I guess I should reword my question... "Is there a way to delay an entire function?" Link to comment
Harry Posted April 27, 2004 Share Posted April 27, 2004 Just make a separate function (alias) which handles the excecution, and put the name of that function behind the timer, instead of mta.say ... Link to comment
Aeron Posted April 28, 2004 Share Posted April 28, 2004 alias mta.join { ;!.timer !.timer 1 3 test}alias test {This code does the funtion 1 times after 3 seconds when a player joined. Link to comment
[TF]JoStud Posted April 28, 2004 Share Posted April 28, 2004 Okay, I give up... I was trying to make a login script, but it isn't working out... Link to comment
wax03 Posted April 29, 2004 Share Posted April 29, 2004 alias mta.text { if (!stats == $3) { mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) } this is only show myself stats,use !stats still show myself stats,how to let show other people stats? Link to comment
Quig Posted April 30, 2004 Share Posted April 30, 2004 alias mta.kill { if ($mta.kills($1,$3) == 10) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills! if ($mta.kills($1,$3) == 20) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills! if ($mta.kills($1,$3) == 30) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills! } * EDIT typo's fixed this code works great but i was wondering if a deaths version of that could be made? and if so where would it be placed in the script.mrc? and if it would be the same format but with $mta.deaths instead of $mta.kills pls hlp example alias mta.?????? { if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!! } Link to comment
Harry Posted April 30, 2004 Share Posted April 30, 2004 i was wondering if a deaths version of that could be made? example alias mta.?????? { if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!! } Because a kill also means there is a death, put this part in mta.kill as well: if ($mta.kills($1,$2) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!! $2 is the person killed, $3 is the killer Link to comment
Aeron Posted April 30, 2004 Share Posted April 30, 2004 alias mta.text { if (!stats == $3) { mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) } this is only show myself stats,use !stats still show myself stats,how to let show other people stats? alias mta.text { if (!stats == $3) { if ($4 isnum) mta.say $1 Name: $mta.name($1,$4) - ID: $4 - Ping: $mta.ping($1,$4) - Kills: $mta.kills($1,$4) - Deaths: $mta.deaths($1,$4) - Online: $duration($mta.online($1,$4)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) else mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) } alias mta.kill { if ($mta.kills($1,$3) == 10) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills! if ($mta.kills($1,$3) == 20) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills! if ($mta.kills($1,$3) == 30) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills! } * EDIT typo's fixed this code works great but i was wondering if a deaths version of that could be made? and if so where would it be placed in the script.mrc? and if it would be the same format but with $mta.deaths instead of $mta.kills pls hlp example alias mta.?????? { if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!! } alias mta.kill { if ($mta.deaths($1,$2) == 10) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) ! if ($mta.deaths($1,$2) == 20) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) ! if ($mta.deaths($1,$2) == 30) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) ! } Link to comment
Quig Posted April 30, 2004 Share Posted April 30, 2004 just wanted to say thx for the last code and now i have another question?? when i insert a code into the alias mta.join it cancels all the other codes that i have in alias mta.text can anyone tell me why and how to get around it? Link to comment
[TF]JoStud Posted May 1, 2004 Share Posted May 1, 2004 Quig, make sure you don't have any syntax errors... Link to comment
OpiuM. Posted May 1, 2004 Share Posted May 1, 2004 or like in my alias.text, placing a specific code that dont work while the others do,at the top helped me once, and i have no idea why..lmao, try that Link to comment
Recommended Posts