Jump to content

!brb command


Guest CBR

Recommended Posts

This is mine:

on *:SIGNAL:mta.command: {
if ($3 == !away) {
   mta.say $1 $mta.name($1,$2) setted his status on away.
   set %away. [ $+ [ $1 ] $+ . $+ [ $2 ] ] away
 }
 if ($3 == !brb) {
   mta.say $1 $mta.name($1,$2) setted his status on be right back.
   set %away. [ $+ [ $1 ] $+ . $+ [ $2 ] ] brb
 }
 if ($3 == !setstatus) {
   if ($4 != $null) {
     mta.say $1 $mta.name($1,$2) setted his status on $4
     set %away. [ $+ [ $1 ] $+ . $+ [ $2 ] ] $4
   }
   else mta.say $1 $mta.name($1,$2) Syntax: !setstatus 
 }
if ($3 == !pa) {
   unset %pa
   set %countpa 0
   while (%countpa <= $mta.maxplayers($1) ) {
     if ($mta.name($1,%countpa) != Unknown) && (%away. [ $+ [ $1 ] $+ . $+ [ %countpa ] ]) {
       if (%pa == $null) {
         %pa = $mta.name($1, %countpa) ( $+ %away. [ $+ [ $1 ] $+ . $+ [ %countpa ] ] $+ )
       }
       else {
         %pa = %pa $+ , $mta.name($1, %countpa) ( $+ %away. [ $+ [ $1 ] $+ . $+ [ %countpa ] ] $+ )
       }
     }
    !inc %countpa
   }
   if ( %pa == $null ) {
     mta.say $1 No people have a away status.
   }
   else {
     mta.say $1 Statuses: %pa
   }
   unset %pa
   unset %countpa
 }
}

Maybe is the english wrong :P

Link to comment
  • Recently Browsing   0 members

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