Jump to content

Help, Can u fix


watti

Recommended Posts

can any one test and Fix this.. please.. im realy busy

on *:SIGNAL:mta.command:{  
  if ($mta.admin+($1) == $true) {  
    if (!cop* iswm $3) {  
      var %a = 0,%b = $null  
      while (%a <= $mta.maxplayers($1)) {  
        if (Cop* iswm $mta.skin($1,%a).name) { var %b = $+(%b,$mta.name($1,%a),$chr(32)) }  
        inc %a  
      }  
      mta.say $1 Cops: $iif(%b,%b,None)  
    }  
    elseif (!suspect == $3) {  
      if (Cop* iswm $mta.skin($1,$2).name) {  
        if ($mta.getid($1,$4) != -1) {  
          set $+(%rpg.suspects,.,$1) $addtok($+(%rpg.suspects,.,$1),$mta.name($1,$mta.findid($1,$4)),32)  
          mta.say $1 $mta.name($1,$mta.findid($1,$4)) has been Suspected For $iif($5,$5,None)  
        }  
        else mta.msg $1 Invalid ID/Name  
      }  
      else mta.msg $1 $2 your not a cop, To use this command Become a cop.  
    }  
    elseif (!wanted == $3) {  
      if ($numtok($+(%rpg.suspects,.,$1),32) > 9) {  
        mta.say $1 Wanted players: $iif($+(%rpg.suspects,.,$1),$+(%rpg.suspects,.,$1),None)  
      }  
      elseif ($numtok($+(%rpg.suspects,.,$1),32) > 19) {  
        mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32)  
        !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32)  
      }  
      else {  
        mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32)  
        !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32)  
        !.timer 1 2 $gettok($+(%rpg.suspects,.,$1),19-,32)  
      }  
    }  
  }  
}  
on *:SIGNAL:mta.kill:{  
  if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) {  
    mta.name $1 $3 Killed a wanted player  
    set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)  
  }  
}  
  

Link to comment

on *:SIGNAL:mta.command:{  
  if ($mta.admin+($1) == $true) {  
    if (!cop* iswm $3) {  
      var %a = 0,%b = $null  
      while (%a <= $mta.maxplayers($1)) {  
        if (Cop* iswm $mta.skin($1,%a).name) { var %b = $+(%b,$mta.name($1,%a),$chr(32)) }  
        inc %a  
      }  
      mta.say $1 Cops: $iif(%b,%b,None)  
    }  
    elseif (!suspect == $3) {  
      if (Cop* iswm $mta.skin($1,$2).name) {  
        if ($mta.getid($1,$4) != -1) {  
          set $+(%rpg.suspects,.,$1) $addtok($+(%rpg.suspects,.,$1),$mta.name($1,$mta.findid($1,$4)),32)  
          mta.say $1 $mta.name($1,$mta.findid($1,$4)) has been Suspected For $iif($5,$5,None)  
        }  
        else mta.msg $1 Invalid ID/Name  
      }  
      else mta.msg $1 $2 your not a cop, To use this command Become a cop.  
    }  
    elseif (!wanted == $3) {  
      if ($numtok($+(%rpg.suspects,.,$1),32) < 9) {  
        mta.say $1 Wanted players: $iif($+(%rpg.suspects,.,$1),$v1,None)  
      }  
      elseif ($numtok($+(%rpg.suspects,.,$1),32) < 19) {  
        mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32)  
        !.timer 1 1 mta.say $1 $gettok($+(%rpg.suspects,.,$1),9-18,32)  
      }  
      else {  
        mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32)  
        !.timer 1 1 mta.say $1 $gettok($+(%rpg.suspects,.,$1),9-18,32)  
        !.timer 1 2 mta.say $1 $gettok($+(%rpg.suspects,.,$1),19-,32)  
      }  
    }  
  }  
}  
on *:SIGNAL:mta.kill:{  
  if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) {  
    mta.name $1 $3 Killed a wanted player  
    set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)  
  }  
}  
  

If it aint working at all, make sure you have Admin+ on in the server.

Link to comment
  • Recently Browsing   0 members

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