Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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?

Posted

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.

plmta.png

fmj.png

Posted

  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

av.png

Posted
altho i could go in ur server under ZaCk and get specil treatment supposedly :lol:

idiot

"ZC" not "Z" and "C"

"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

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

Posted

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

av.png

Posted

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?

plmta.png

fmj.png

Posted
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 :wink:

Posted
hey

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

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
hey

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

Posted
hey

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

:cry:

elseif ($3 == !offtropic ) {

mta.say $1 That's offtropic mta.name( $2 , $4 )

mta.kick $1 $4

}

elseif ($3 == !EN ) {

mta.say $1 Hi all, Sorry for my bad english :S

mta.ban $1 $4

}

Posted

YES

Thanks [FMJ]Oli, and harry it works :lol:

Grz Michael / (ZC)James

elseif ($3 == !offtropic ) {

mta.say $1 That's offtropic mta.name( $2 , $4 )

mta.kick $1 $4

}

elseif ($3 == !EN ) {

mta.say $1 Hi all, Sorry for my bad english :S

mta.ban $1 $4

}

Posted
:shock: There is a timeban on this forum AND is working

elseif ($3 == !offtropic ) {

mta.say $1 That's offtropic mta.name( $2 , $4 )

mta.kick $1 $4

}

elseif ($3 == !EN ) {

mta.say $1 Hi all, Sorry for my bad english :S

mta.ban $1 $4

}

Posted

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

plmta.png

fmj.png

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

av.png

Posted

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

plmta.png

fmj.png

Posted

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.

plmta.png

fmj.png

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

    • No registered users viewing this page.

×
×
  • Create New...