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

Retired Dodo Killer.

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

dont forget the '}' of mta.text ...

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

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

...

av.png

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:

MTA Server Hosting (pm me for details!)

VCES / SAES Clan Member - VCES.net

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

ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam

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

ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam

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
}

av.png

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.

ignorance has taken over we gotta take the power back bam, here's the plan mother fuck uncle sam

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

Proud member of Multi Theft Auto

Founder of Full Metal Jacket

mtateam5fq.png

fmjbar2hk.png

Creator of MTA:mA:GRS

http://www.mtafmj.com

http://www.full-fat.com

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

plmta.png

fmj.png

Posted
its irc scripting

mIRC Scripting v6.16 ;)

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

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

    • No registered users viewing this page.

×
×
  • Create New...