Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

Posted

first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T FUCKING THINK SO!

mta.ban $1 $2

}

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T :o THINK SO!

mta.ban $1 $2

}

alias mta.text { 
if (brb == $3) { 
mta.say $1 I DON'T  THINK SO! 
mta.ban $1 $2 
}

don't have $ in your alias :P

Posted
first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T :o THINK SO!

mta.ban $1 $2

}

alias mta.text { 
if (brb == $3) { 
mta.say $1 I DON'T  THINK SO! 
mta.ban $1 $2 
}

don't have $ in your alias :P

haha omg pwned im thick 8)

Posted
first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T :o THINK SO!

mta.ban $1 $2

}

TRY:

alias mta.text { 
 if (brb == $3) { 
    mta.say $1 I DON'T  THINK SO! 
   mta.ban $1 * 
 }
}

...

Posted
first attempt of making a script with a little help. its one that would ban if someone said "brb", so far i have this. it doesnt work though...can someone help please?:

alias $mta.text {

if (brb == $3) {

mta.say $1 I DON'T :o THINK SO!

mta.ban $1 $2

}

TRY:

alias mta.text { 
 if (brb == $3) { 
    mta.say $1 I DON'T  THINK SO! 
   mta.ban $1 * 
 }
}

...

lmfao harry :lol:

Posted

ok im trying my hand at a script which will slap a specific player if they talk in in my server, and only that player. so far, me and deejay have managed to get it slapping either both of us when we talk, or neither of us when we talk. heres what i have:

alias mta.text {
   if ($mta.name($1,$2) == TmM-DeeJee){
   mta.say $1 /slap $mta.name($1,$2) 
   mta.say $1 Sorry $mta.name($1,$2) - this is an anti-talking server!
 }
}

any tips on how to make it work?

Posted
alias mta.command {
if ($3 == !setname) && ($mta.name($1,$2) == yourname) {
 if ($4 != $null) {
  if ($mta.name($1,$4) != Unknown) {
  mta.say $1 Set to $mta.name($1,$4)
  set %person $mta.name($1,$4)
  }
  else {
  mta.say $1 Error, ID not present.
  }
 }
 else {
 mta.say $1 Error, !setname 
 }
}
}
alias mta.text {
if ($mta.name($1,$2) == %person) {
mta.slap $1 $2
.timer 1 0 mta.say $1 Sorry $mta.name($1,$2) $+ , this is an anti-talking server! 
}
}

Posted

Add this to your commands:

elseif ($3 == !unset) && ($mta.name($1,$2) == TmM-DeeJee) {
   mta.cancelnospeak $1-
  }

and this is the alias that goes with it:

alias mta.cancelnospeak {
 mta.say $1 no speaking penalty removed
 unset %person 
}

I know using an alias aint the best way but it works..:)

Posted

okay looking for a script that does a action (like mta.slap or mta.kick) when there are certain words in the chat.

TmM-DeeJee: blalblblallba noob blabla

**admin slapped TmM-DeeJee

**stop calling people noob**

summit like that..:)

and also looking for a script that eacts to the way people are killed:

*TmM-DeeJee died (impact)

**wear a helmet next time**

sumit like that..

thanks in advance

Posted

In mta.text:

if ( noob isin $3- ) {
 mta.kick $1 $2
}

and in mta.kill

if ($5 == 16) {
 mta.say $1 $mta.name($1,$2) wear a helmet
}

Posted

Okay question abouth locations..

let's say I want to set a place in my script.. and in that place there is something to be done or not to be done..

if ($3 == !dance) {
 if ($mta.area($1,$2) == pole) {

and then the rest of the code needed.. so far no problems..

but how do I get the coordinates form that place.. or any place for that mather, becuase I have some more Idea's..

so how to get the coordinates out of the game, and how to combine htose so I can set a larger place, like the whole scrapyard ..

any help would be great..

thru here or msn.

Posted

not sure wot u mean, but theres an area creatin script by aeron around here sumwhere, u can use that to set areas

Posted
Oli, can you tell me how make !favourites the shortest way ? Because I don't know how and I want lear it. ok ?

ill write 1 for u tomorrow and post it. I appreciate ure effort, and its not bad, but it is actually amazing the amount variables :)

Posted

ok thx Oli...

Can you tell me which language is has wrote MTA:ma (mta.mrc), it is PHP ? C++ ? Because I understand it what I have in scripts but I want learn more...

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

    • No registered users viewing this page.

×
×
  • Create New...