Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

Posted

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 :)

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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

Posted

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

Posted

first u need a server :P 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

Posted

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

Posted
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
}

Posted

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...

Posted
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 
}
}

Posted

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 :cry: pls hlp

Posted

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?

Posted

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 :)

Posted

at the end of mta.kill how could i make it go onto my own function called test

Posted

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?"

Posted

Just make a separate function (alias) which handles the excecution, and put the name of that function behind the timer, instead of mta.say ...

Posted

alias mta.join {
;!.timer
!.timer 1 3 test
}
alias test {

This code does the funtion 1 times after 3 seconds when a player joined.

Posted

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?

Posted

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!!
}

Posted

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

Posted
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) !
}

Posted

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?

Posted

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 ;)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...