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

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.

Link to comment

  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

Link to comment

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

Link to comment

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?

Link to comment
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:

Link to comment
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 
    }
  }
}

Link to comment
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 )

Link to comment
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:

Link to comment

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

Link to comment
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?

Link to comment

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

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

    • No registered users viewing this page.

×
×
  • Create New...