Jump to content

How can I make my own admin script?


DJDenz

Recommended Posts

why not just use a simple findtok coding

*thanks Oli for this one 8)

on *:SIGNAL:mta.command:{ 
 if $findtok([u]SmartiE [FMJ]Oli,$mta.name($1,$2),1,32) { 
   if ($3 == !sun) {
     mta.setweather $1 0
   }
   if ($3 == !cloud) {
     mta.setweather $1 1
   }
   if ($3 == !rain) {
     mta.setweather $1 2
   }
   if ($3 == !fog) {
     mta.setweather $1 3
   }
 }
}

Just Delete SmartiE and [FMJ]Oli out and then add ur Admin Names along it If you need more help just Post ;-)

Link to comment
Sorry I'm a beginner of making scripts...

if ($3 == !sun && $mta.ip($1,$2) == yourip) {

most this script under:

on *:SIGNAL:mta.admin: {

?

Thanks

Dennis 8)[/code]

on *:SIGNAL:mta.command: {
 if ($3 == !sun && $mta.ip($1,$2) == %ip.djdenz) {
   mta.setweather $1 0 
 }
 elseif ($3 == !set & $mta.name($1,$2) == djdenz) {
   !writeini mta.djdenz $mta.name($1,$2) password $4
 }
}
on *:SIGNAL:mta.join: {
 if (djdenz isin $mta.name($1,$2) {
   mta.msg $1 $2 DJDENZ is Admin of this server you have 30 secs to login
!   timer.join 1 30 mta.kick $1 $2
 }
}
on *:SIGNAL:mta.pm: {
 if ($3 == login && djdenz isin $mta.name($1,$2)) {
   if ($readini(mta.djdenz.ini,$mta.name($1,$2),password) == $4) {
     !set %ip.djdenz $mta.ip($1,$2)
     mta.say $1 $mta.name($1,$2) has logged in as admin
     !timer.join off
   }    
 }
}

Load script do !set ,then remove this part of script.

 elseif ($3 == !set & $mta.name($1,$2) == djdenz) {
   !writeini mta.djdenz $mta.name($1,$2) password $4
 }

Edited by Guest
Link to comment

here is it if ur mtaname is DJ Denz

on *:SIGNAL:mta.command:{ 
 if $findtok([DJdenz,$mta.name($1,$2),1,32) { 
   if ($3 == !sun) { 
     mta.setweather $1 0 
   } 
   if ($3 == !cloud) { 
     mta.setweather $1 1 
   } 
   if ($3 == !rain) { 
     mta.setweather $1 2 
   } 
   if ($3 == !fog) { 
     mta.setweather $1 3 
   } 
 } 
}

to change weather do !sun !rain !fog or !cloud

Link to comment

[quote name="

on *:SIGNAL:mta.command: {

if ($3 == !sun && $mta.ip($1' date='$2) == yourip) {

mta.setweather $1 0

}

}

[[/quote]

Don't work...

my script:

on *:SIGNAL:mta.text:{
 if ($3 == kanker) {
   if ($4 == $null) {
    mta.say $1 Learn to speak normal!
    $mta.kick($1,$2)
   } 
 }  
 if ($3 == tyfus) {
   if ($4 == $null) {
    mta.say $1 Yo men... take it easy!
   } 
 }    
}
on *:SIGNAL:mta.enter:{
 mta.msg $1 $2 You are in/on a $mta.vehicle($1,$2).name (Class- $+ $rpg.vehicle-grade($1,$2) $+ ) with $calc(100 - $mta.health($1,$2).vehicle) $+ % damage  
}

on *:SIGNAL:mta.kill:{
 if ($4 == 39) { 
  mta.say $1 $mta.name($1,$3) U are die! thank to this carkiller
  }
 }
}  
on *:SIGNAL:mta.score:{
  elseif ($mta.score($1,$2) == 5) {
   if ($4 == $null) {
   mta.say $1 $mta.name($1,$2) has killed 5 people!
   }
 }
}
on *:SIGNAL:mta.join:{  
 if (MTAPlayer isin $mta.name($1,$2)) {
     mta.say $1 The name "MTAPlayer" is not allowed. Please change your nickname and come back again! 
     $mta.kick($1,$2) 
   }
   mta.msg $1 $2 Hi $mta.name($1,$2) Welcome To The [TMG] Server! For More Information Check www.tmg-clan.tk
   }
 }
} 
on *:SIGNAL:mta.spawn:{
  mta.say $1 $mta.name($1,$2) is spawned as $mta.skin($1,$2).name
   }
 }
} 
on *:SIGNAL:mta.command:{ 
 if ($3 == !sun && $mta.ip($1,$2) == 84.41.137.218) { 
   mta.setweather $1 0 
   } 
 } 
}

And hi doesn't something :cry:

Link to comment

on *:SIGNAL:mta.command:{
 if ($3 == !sun && $mta.ip($1,$2) == 84.41.137.218) {
   mta.setweather $1 0
   }
 }
}

you put 1 too many } at the end

on *:SIGNAL:mta.command:{
 if (($3 == !sun) && ($mta.ip($1,$2) == 84.41.137.218)) {
   mta.setweather $1 0
 }
}

can't see that not working but then again its me writing it :P

and yes on the person changing his name, but just change the name to someone who you want to be able to change it in the script

Link to comment

SHIT DAMNED it doesn't work

on *:SIGNAL:mta.command:{ 
 if (($3 == !sun) && ($mta.ip($1,$2) == 84.41.137.218)) { 
   mta.setweather $1 0 
   } 
 } 
 if ($3 == !lol) {
   if ($4 == $null) {
    mta.say $1 $mta.name($1,$2) is Laught Out Loud!
   }    
 }
 if ($3 == !rofl) {
   if ($4 == $null) {
    mta.say $1 $mta.name($1,$2) is Rolling On The Flour Laughing!  
   }    
 }
 if ($3 == !lmao) {
   if ($4 == $null) {
    mta.say $1 Laughing My Ass Off!
   }    
 }
 if ($3 == ![TMG]) {
   if ($4 == $null) {
    mta.say $1 The Multi Gamers
   }    
 }
 if ($3 == !TMG) {
   if ($4 == $null) {
    mta.say $1 The Multi Gamers
   }    
 }
 if ($3 == !stfu) {
   if ($4 == $null) {
    mta.say $1 Shut The Fuck Up!
   }    
 }
 if ($3 == !wtf) {
   if ($4 == $null) {
    mta.say $1 What The Fuck!? 
   }    
 }
 if ($3 == !brb) {
   if ($4 == $null) {
    mta.say $1 $mta.name($1,$2) is Be Right Back 
   }    
 }
 if ($3 == !back) {
   if ($4 == $null) {
    mta.say $1 $mta.name($1,$2) is back    
   }
 }
 if ($3 == !time) {
   if ($4 == $null) {
    mta.say $1 Game-Time: $mta.time($1)
    mta.say $1 Local-Time: $iif($5 == gmt,$asctime($gmt) GMT,$fulldate)
   }
 }
 var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) 
if ($3 == !hp) { 
  if (%a != -1) mta.say $1 $mta.name($1,%a) $+ 's health is $mta.health($1,%a) 
  else mta.msg $1 $2 Error - Invalid ID
  }
 var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2) 
if ($3 == !car) { 
  if (%a != -1) mta.say $1 $mta.name($1,%a) is driving a $mta.vehicle($1,$2).name
  else mta.msg $1 $2 Error - Invalid ID      
   } 
 } 
}     

nothing works more:S

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...