Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

HI, what it dosn't work:

  alias mta.text {
if ($3 == !aliases) { 
   if ($4 != $null) {  
     if ($readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4)))) { 
       mta.say $1 Aliases used by $mta.name($1,$mta.getid($1,$4)) $+ : $readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4))) 
     } 
   } 
   else { 
     mta.say $1 Syntax: !aliases 
   } 
 }

When I write:!aliases server write Syntax: !aliases , and when I write !aliases 0 server nothing write... Why ? :(

Are you sure that 0 exist ?

Here is the code !aliases

if ($mta.name($1,$2) == $mta.name($1,$2)) { 
     if ($readini("Alias.ini",IP,$mta.ip($1,$2))) { 
       if ($mta.name($1,$2) $+ , !isin $readini(Alias.ini",IP,$mta.ip($1,$2)) $+ ,) { 
         writeini -n "Alias.ini" IP $mta.ip($1,$2) $readini("Alias.ini",IP,$mta.ip($1,$2)) $+ , $mta.name($1,$2) 
       } 
     } 
     else { 
       writeini -n "Alias.ini" IP $mta.ip($1,$2) $mta.name($1,$2) 
     } 
   }

and

if ($3 == !aliases) { 
   if ($4 != $null) {  
     if ($readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4)))) { 
       mta.say $1 Aliases used by $mta.name($1,$mta.getid($1,$4)) $+ : $readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4))) 
     } 
   } 
   else { 
     mta.say $1 Syntax: !aliases 
   } 
 }

Grz Michael / (ZC)James

Edited by Guest
Link to comment
  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Ok but i have this:

if ($mta.name($1,$2) == $mta.name($1,$2)) { 
     if ($readini("Alias.ini",IP,$mta.ip($1,$2))) { 
       if ($mta.name($1,$2) $+ , !isin $readini(Alias.ini",IP,$mta.ip($1,$2)) $+ ,) { 
         writeini -n "Alias.ini" IP $mta.ip($1,$2) $readini("Alias.ini",IP,$mta.ip($1,$2)) $+ , $mta.name($1,$2) 
       } 
     } 
     else { 
       writeini -n "Alias.ini" IP $mta.ip($1,$2) $mta.name($1,$2) 
     } 
   } 

Link to comment

cant believe my little $mta.name($1,$2) == $mta.name($1,$2) thing is still here lol... i put that in as a joke, anted to see what aeron and harry said :lol:

It does work.. but tis really crude.. id probably ise something like if $mta.name($1,$2) != $null instead.. but its ure call :)

Link to comment

Hi

I have problem with this scripts:

alias mta.join {
elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { 
   mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota 
   writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) 
   mta.kick $1 $2 
 }
 ;$1 = Server
 ;$2 = Player ID

}
alias mta.text {
elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   mta.warn $1- 
 } 
 elseif ($3 == !warnings) { 
   if ($4 != $null) { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) has been warned 0 times. 
     } 
   } 
   else { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. 
     } 
   } 
 } 
 elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   if ($4 != $null) { 
     mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 
     remini "MTAwarn.ini" main $4 
     remini "MTAwarn.ini" joinkick $4 
     remini "MTAwarn.ini" reasons $4 
   } 
   else { 
     mta.say $1 Syntax: !erasewarn 
   } 
 }
alias mta.warn { 
 if ($4 != $null) { 
   if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
     } 
   } 
   elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
     } 
   } 
   else { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
     } 
   } 
 } 
 else { 
   mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn 
 } 
}
 ;$1 = Server
 ;$2 = Player ID
 ;$3- = Text

}

It working, but !warn can write all players and not only admin, why?

:(:( ??

Link to comment
alias mta.join {

elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) {

mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota

writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2)

mta.kick $1 $2

}

;$1 = Server

;$2 = Player ID

}

alias mta.text {

elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) {

mta.warn $1-

}

elseif ($3 == !warnings) {

if ($4 != $null) {

if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) {

mta.say $1 $mta.name($1,$4) has been warned 1 time.

}

elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) {

mta.say $1 $mta.name($1,$4) has been warned 2 times.

}

else {

mta.say $1 $mta.name($1,$4) has been warned 0 times.

}

}

else {

if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) {

mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time.

}

elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) {

mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times.

}

else {

mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times.

}

}

}

elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) {

if ($4 != $null) {

mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4

remini "MTAwarn.ini" main $4

remini "MTAwarn.ini" joinkick $4

remini "MTAwarn.ini" reasons $4

}

else {

mta.say $1 Syntax: !erasewarn

}

}

alias mta.warn {

if ($4 != $null) {

if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) {

if ($5 != $null) {

mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5-

writeini "MTAwarn.ini" main $mta.name($1,$4) 2

writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5-

}

else {

mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked.

writeini "MTAwarn.ini" main $mta.name($1,$4) 2

}

}

elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) {

if ($5 != $null) {

mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye!

mta.kick $1 $4

writeini "MTAwarn.ini" main $mta.name($1,$4) 3

writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5-

}

else {

mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye!

mta.kick $1 $4

writeini "MTAwarn.ini" main $mta.name($1,$4) 3

}

}

else {

if ($5 != $null) {

mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5-

writeini "MTAwarn.ini" main $mta.name($1,$4) 1

writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5-

}

else {

mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked.

writeini "MTAwarn.ini" main $mta.name($1,$4) 1

}

}

}

else {

mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn

}

}

;$1 = Server

;$2 = Player ID

;$3- = Text

}

Ok this should work..

alias mta.join {
elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { 
   mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota 
   writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) 
   mta.kick $1 $2 
 }
}
alias mta.text {
elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   mta.warn $1- 
 } 
 elseif ($3 == !warnings) { 
   if ($4 != $null) { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) has been warned 0 times.  
   } 
   else { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. 
     } 
   } 
 } 
 elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   if ($4 != $null) { 
     mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 
     remini "MTAwarn.ini" main $4 
     remini "MTAwarn.ini" joinkick $4 
     remini "MTAwarn.ini" reasons $4 
   } 
   else { 
     mta.say $1 Syntax: !erasewarn 
   } 
alias mta.warn { 
 if ($4 != $null) { 
   if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
     } 
   } 
   elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
     }  
   else { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
     } 
   } 
 } 
 else { 
   mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn 
 } 
}
}

Edited by Guest
Link to comment
It working, but !warn can write all players and not only admin, why?

:(:( ??

Did you build an admin check in? In the mta.warn there isn't one, so it has to be at the call.

In mta.text for example:

elseif($3==!warn && %isadmin.$1.$2) {

mta.warn $1-

}

Or something like that

Link to comment

well to be honnest try and search to 38 pages of talking with an ocasionaly pasted in script..

I know where to look for wich script now, but thats becouse I followed this thread, but still I can't make shit out of an alias script..

but seeing all you guys react with is= "use the search it's here somewhere"

I am not gonna ask how to make that.. becouse I know the answer..

Link to comment

Ahhh... this scripts (all version) doesn't work...why?

Oli, do you know why..

alias mta.join { 
elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { 
   mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota 
   writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) 
   mta.kick $1 $2 
 } 
 ;$1 = Server 
 ;$2 = Player ID 

} 
alias mta.text { 
elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   mta.warn $1- 
 } 
 elseif ($3 == !warnings) { 
   if ($4 != $null) { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
       mta.say $1 $mta.name($1,$4) has been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) has been warned 0 times. 
     } 
   } 
   else { 
     if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. 
     } 
     elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. 
     } 
   } 
 } 
 elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { 
   if ($4 != $null) { 
     mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 
     remini "MTAwarn.ini" main $4 
     remini "MTAwarn.ini" joinkick $4 
     remini "MTAwarn.ini" reasons $4 
   } 
   else { 
     mta.say $1 Syntax: !erasewarn 
   } 
 } 
alias mta.warn { 
 if ($4 != $null) { 
   if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 2 
     } 
   } 
   elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! 
       mta.kick $1 $4 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 3 
     } 
   } 
   else { 
     if ($5 != $null) { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
       writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- 
     } 
     else { 
       mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. 
       writeini "MTAwarn.ini" main $mta.name($1,$4) 1 
     } 
   } 
 } 
 else { 
   mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn 
 } 
} 
 ;$1 = Server 
 ;$2 = Player ID 
 ;$3- = Text 

}

When I write for example !warn 0 server write 1st warning. 2 more warnings and you will be kicked.

when I write !warnings server write Syntax - !warn , and when I write !erasewarn Cube server write Syntax - !warn , WHY ??

And !warn can write each players and not only admin , why ??

:(:(:(:(:(

Link to comment
Ahhh... this scripts (all version) doesn't work...why?

Oli, do you know why..

Code:

alias mta.join { 
elseif 

Is wrong, first if can't be elseif. Change 'elseif' to if

There is no mta.id call inhere, so you can't use names to warn, you havee to use the id's.. that's what the error tells you.. Try the !warnings with an id (number) too. if that isn't working either, post the message mirc prints in here

If this is your wholte script, it it not strnage that every person can type !warn.. There are no admin functions whatsoever. So the %isadmin is never set to false if a person joins, this means every person is an admin...

Link to comment

Ok Harry but when i write !warnings 0 server wite

<#Cube(RP)*: 2nd warning. 1 more warning and you will be kicked.> ??

I have so on me server:

#Cube(RP)*: !warn
<#Cube(RP)*: Syntax - !warn >
#Cube(RP)*: !warnings
<#Cube(RP)*: Syntax - !warn >
#Cube(RP)*: !warnings 0
<#Cube(RP)*: 2nd warning. 1 more warning and you will be kicked.>
#Cube(RP)*: !warn
<#Cube(RP)*: Syntax - !warn >



#Cube(RP)*: !erasewarn #Cube(RP)*

#Cube(RP)*: !erasewarn
<#Cube(RP)*: Syntax - !warn >

??

I don't know what is wrong..??

Link to comment

Oh, while looking another time at your script, i noticed you're not closing mta.text part, put a } in a new line in front of mta.warn

If it still isn't working, conact me on msn, so i can have a look at your complete script

Link to comment

Hi all

I have vrote a script to shutdown i know this script is allreddy vroten by another person.

To shutdown you must be an admin and have a password from the server

Now is my question is it poseble that an admin can do /msg server shutdown off - and then the server is not going down ?

  else if ($4 == shutdown ) {
    mta.say $1 Please typ your password to shutdown the server (/msg server shutdown )
   if ($readini( "MTAScript.ini", admins, $mta.name( $1 , $2 )) == $5) {
    mta.say $1 Admin $mta.name($1,$2) has shutdown the server
   .timer 1 1 mta.say $1 5 min to shutdown
   .timer 1 60 mta.say $1 4 min to shutdown
   .timer 1 120 mta.say $1 3 min to shutdown
   .timer 1 180 mta.say $1 2 min to shutdown
   .timer 1 240 mta.say $1 1 min to shutdown
   .timer 1 270 mta.say $1 30 sec to shutdown
   .timer 1 280 mta.say $1 20 sec to shutdown
   .timer 1 290 mta.say $1 10 sec to shutdown
   .timer 1 300 mta.say $1 Thanks for playing, Goodbye 
   .timer 1 301 mta.shutdown $1
   .timer 1 305 mta.say $1 Server shutdown disabled !!
 }    
 }

I hope someboddy can help me :D

Grz Michael / (ZC)James

Link to comment

thanks harry for your tip

But now i have change the script and it's no longer working :(

  else if ($4 == shutdown ) {
   if ($5 == $null ) {
    mta.say $1 Please typ your password to shutdown the server (/msg server shutdown )
   else ($readini( "MTAScript.ini", admins, $mta.name( $1 , $2 )) == $5) {
    mta.say $1 Admin $mta.name($1,$2) has shutdown the server
   .timershutdown 1 1 mta.say $1 5 min to shutdown
   .timershutdown 1 60 mta.say $1 4 min to shutdown
   .timershutdown 1 120 mta.say $1 3 min to shutdown
   .timershutdown 1 180 mta.say $1 2 min to shutdown
   .timershutdown 1 240 mta.say $1 1 min to shutdown
   .timershutdown 1 270 mta.say $1 30 sec to shutdown
   .timershutdown 1 280 mta.say $1 20 sec to shutdown
   .timershutdown 1 290 mta.say $1 10 sec to shutdown
   .timershutdown 1 300 mta.say $1 Thanks for playing, Goodbye 
   .timershutdown 1 301 mta.shutdown $1
   .timershutdown 1 305 mta.say $1 Server shutdown disabled !!
  else ($5 == off ) {
   mta.say $1 Server shutdown disabled
  .timershutdown 1 off
 }    
 }
 }
 }

Does someony see what i doing wrong ?

Link to comment

Hey :)

First i wil say thanks to Harry the shutdown script is reddy and here it is

else if ($4 == shutdown ) { 
    if ($5 == $null ) { 
      mta.say $1 Please typ /msg server shutdown on/off
    }
    elseif ($5 == off  && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { 
      mta.say $1 Server shutdown disabled 
     .timershutdown1 off 
     .timershutdown2 off 
     .timershutdown3 off 
     .timershutdown4 off 
     .timershutdown5 off 
     .timershutdown6 off 
     .timershutdown7 off 
     .timershutdown8 off 
     .timershutdown9 off 
     .timershutdown10 off 
     .timershutdown11 off 
    } 
    elseif ($5 == on && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true) { 
      mta.say $1 Admin $mta.name($1,$2) has shutdown the server 
      .timershutdown1 1 1 mta.say $1 5 min to shutdown 
      .timershutdown2 1 60 mta.say $1 4 min to shutdown 
      .timershutdown3 1 120 mta.say $1 3 min to shutdown 
      .timershutdown4 1 180 mta.say $1 2 min to shutdown 
      .timershutdown5 1 240 mta.say $1 1 min to shutdown 
      .timershutdown6 1 270 mta.say $1 30 sec to shutdown 
      .timershutdown7 1 280 mta.say $1 20 sec to shutdown 
      .timershutdown8 1 290 mta.say $1 10 sec to shutdown 
      .timershutdown9 1 300 mta.say $1 Thanks for playing, Goodbye  
      .timershutdown10 1 301 mta.shutdown $1 
      .timershutdown11 1 305 mta.say $1 Server shutdown disabled !! 
     }
   } 

Last time i'm the most active person on the Scripting forum :D

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

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

Grz Micharl / (ZC)James

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

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
}

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

    • No registered users viewing this page.

×
×
  • Create New...