Jump to content

!car and !slap


catman

Recommended Posts

Posted

this is mine for !car

}
 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 in/on a $mta.vehicle($1,%a).name with $mta.health($1,%a).vehicle) $+ % damage
  else mta.msg $1 $2 Error - Invalid ID      
   } 
 } 
} 

Put it under: on *:SIGNAL:mta.command:{

Posted

U need this?

on *:SIGNAL:mta.pm:{ 
 if ($3 == gw) { 
   if ($mta.level($1,$2) >= $readini(gw-password.ini,gw $+ $1,level)) { 
     if ($4 == on) { 
       if ($5) { 
         !writeini gw-password.ini gw $+ $1 password $5 
         !writeini gw-password.ini gw $+ $1 status on 
         mta.say $1 Gangwar passwording activated. 
       } 
       else $mta.msg $1 $2 You must specify a password. 
     } 
     elseif ($4 == off) { 
       !writeini gw-password.ini gw $+ $1 status off 
       mta.say $1 Gangwar passwording deactivated. 
     } 
   } 
   if (($4 == login) && ($readini(gw-password.ini,gw $+ $1,status) == on) { 
     if ($5 == $readini(gw-password.ini,gw $+ $1,password)) { 
   !.timerGW. $+ $1 $+ . $+ $2 off 
       mta.msg $1 $2 Correct password, you are logged in. 
     } 
     else mta.msg $1 $2 Incorrect password. 
   } 
 } 
} 
on *:SIGNAL:mta.join:{ 
 if ($readini(gw-password.ini,gw $+ $1,status) == on) { 
   mta.msg $1 $2 This server is passworded for a gangwar. Do /msg gw login  to login. [30 secs] 
   !.timerGW. $+ $1 $+ . $+ $2 1 30 mta.kick $1 $2 
 } 
} 
on *:SIGNAL:mta.part:{ 
 if ($timer(GW. $+ $2).type == online) { 
   !.timerGW. $+ $1 $+ . $+ $2 off 
 } 
} 
on *:SIGNAL:mta.command:{ 
 if (($3 == !setgw) && ($mta.level($1,$2) == 5)) { 
   if (($4) && ($4 isnum)) { 
     !writeini gw-passworded.ini gw $+ $1 level $4 
     mta.say $1 The level for passwording the server is now " $+ $4 $+ " 
   } 
   else mta.say $1 You must specify a valid level. 
 } 
} 



Commands: 
/msg gw on 
/msg gw off 
/msg gw login 
!setgw 

Posted

  if (($3 == !slap) && (level > 3)) mta.slap $1 %a

obviously you would have to read inis or however you get the level to know what their level is

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

Posted
 if ($3 == !slap) mta.slap $1 %a
 elseif ($3 == !kill) !.timer 5 0 mta.slap $1 %a

don't you need to set the varible %a????

asherbert.png
Posted
  var %a = $iif($4 != $null,$iif($ini($mta.dir $+ $1.ini,ID $+ $4),$4,$mta.getid($1,$4)),$2)

Kevuwk

Any comments made are purely my own and do not represent the interests of the MTA Team

  • Recently Browsing   0 members

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