Jump to content

Who always needed that dm


Squall

Recommended Posts

here i have finished its a quite simple script but here

on *:SIGNAL:mta.join:{
 mta.msg $1 $2 Welcome to the Cetehelo Deathmatch if you need assistance say !dminfo or !help
 mta.say $1 Warning: $mta.name($1,$2) is here treat him/her real "good"
 !writeini " $+ $mta.dir $+ $1.ini" ID $+ $2 away $ctime 
}
on *:SIGNAL:mta.command:{
 if ($3 == !dminfo) { 
   mta.msg $1 $2 Hello $mta.name($1,$2) and welcome this script was made by {KGB}Theoden with a bit of lil Toadys admin system have fun
 } 
 elseif ($3 == !help) {
   mta.msg $1 $2 There are a few help topics here they are !cmd/!rules/!adminhelp
 }
 elseif ($3 == !cmd) {
   mta.msg $1 $2 This is the Deathmatch command topic
   mta.msg $1 $2 !dminfo/!stop/!continue/!people/!dmlist/!dmstat/!rules/!adminhelp/!time
 }
 elseif ($3 == !rules) {
   mta.msg $1 $2 abide by these rules and you will be "safe"
   !.timer 1 2  mta.msg $1 $2 NO cheating
   !.timer 1 4 mta.msg $1 $2 NO hacking
   !.timer 1 6 mta.msg $1 $2 NO flaming/swaring
   !.timer 1 8 mta.msg $1 $2 DO NOT discriminate
   !.timer 1 10 mta.msg $1 $2 Have fun 
 }
 elseif ($3 == !adminhelp) {
   mta.msg $1 $2 we have a prize for the person with more than 100 kills you get promoted to moderator lvl 3
 }
 elseif ($3 == !stop) {
   mta.msg $1 $2 $mta.name($1,$2) has said he/she wants a time out
   !writeini -n " $+ $scriptdir $+ stoped.ini" Stoped $mta.name($1,$2) 1
 }
 elseif ($3 == !continue) { 
   if (!$readini($scriptdir $+ stoped.ini,Stoped,$mta.name($1,$2))) mta.msg $1 $2 Error - You are still in the deathmatch. 
   else { 
     mta.say $1 Warning: $mta.name($1,$2) is back in the Deathmatch! 
     !remini " $+ $scriptdir $+ stoped.ini" Stoped $mta.name($1,$2)
   }
 } 
 elseif ($3 == !time) {
   var %a = $iif($4 == $null,$2,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)))
   while (%a <= $mta.maxplayers($1)) { 
     if ($readini($mta.dir $+ $1.ini,ID $+ %a,away)) { 
       mta.say $1 $mta.name($1,%a) is been on for $duration($calc($ctime - $readini($mta.dir $+ $1.ini,ID $+ %a,away))) 
     } 
     !inc %a 
   } 
 }
 elseif ($3 == !dmlist) { 
   if ($findtok(in,$4,1,32)) { 
     var %a = 0,%b,%c,%d 
     while (%a <= $mta.maxplayers($1)) { 
       if ($4 == in) %b = 2  
       if ($mta.status($1,%a) == %b) { 
         if (!%c) %c = $mta.name($1,%a) 
         elseif ($numtok(%c,32) <=  %c = %c $+ , $mta.name($1,%a) 
         elseif (!%d) %d = $mta.name($1,%a) 
         else %d = %d $+ , $mta.name($1,%a) 
       } 
       !inc %a 
     } 
     mta.say $1 $iif(%c,Players $4 $+ -Deathmatch: %c,There are no Players $4 $+ -Deathmatch) 
     if (%d) mta.say $1 %d 
   } 
   else mta.msg $1 $2 Error - Syntax: $3 
 } 
 if (!dmstat* iswm $3) { 
   var %a = $iif($4 == $null,$2,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)))
   mta.say $1 Stats for $mta.name($1,%a) - Kills: $mta.kills($1,%a) $+ , Deaths: $mta.deaths($1,%a) $+ , Spree: $mta.spree($1,%a) 
   mta.say $1 Overall - Kills: $my.kills($1,%a) $+ , Deaths: $my.deaths($1,%a) $+ , Ratio: $round($calc($my.kills($1,%a) / $my.deaths($1,%a)),4) $+ , Score: $calc($my.kills($1,%a) - $my.deaths($1,%a)) $+ , Best Spree: $my.spree($1,%a) 
 } 
} 
on *:SIGNAL:mta.kill:{
 mta.say $1 $mta.name($1,$2) killed $mta.name($1,%a)
 mta.msg $1 $2 You killed $mta.name($1,%a) You get $12000 
 !writeini rpg.ini bank $mta.name($1,$3) $calc($readini(rpg.ini,bank,$mta.name($1,$3)) + 12000) 
}
on *:SIGNAL:mta.part:{
 if ($readini($mta.dir $+ $1.ini,ID $+ $2,away)) { 
   mta.say $1 $mta.name($1,$2) has been on the Deathmatch for (Time: $duration($calc($ctime - $readini($mta.dir $+ $1.ini,ID $+ $2,away))) $+ ) 
   !remini " $+ $mta.dir $+ $1.ini" ID $+ $2 away 
 }
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...