Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please help my this is my cars.ini file:

[~XT~PingPong]
vehicle=Gang Burrito

This is it enter script:

on *:SIGNAL:mta.enter: { 
 if $readini(carsale.ini,car,on) { 
   set %youcar 0 
   while (%youcar < 26 ) { 
     if ($mta.name($1,%youcar) != Unknown) && (%youcar. [ $+ [ $1 ] $+ . $+ [ %youcar ] ] == $readini(cars.ini,$mta.name($1, %youcar),vehicle)) { 
       mta.msg $1 $2 That car that you enterd is from $mta.name($1,$mta.getid($1, %youcar)) $+ ! Go out this car. 
     } 
     inc %youcar 
   } 
 } 
} 

The Varibale in mIRC is this:

%youcar.1.0 Gang Burrito

Can somone please help my ??

Link to comment
Please help my this is my cars.ini file:

[~XT~PingPong]
vehicle=Gang Burrito

This is it enter script:

on *:SIGNAL:mta.enter: { 
 if $readini(carsale.ini,car,on) { 
   set %youcar 0 
   while (%youcar < 26 ) { 
     if ($mta.name($1,%youcar) != Unknown) && (%youcar. [ $+ [ $1 ] $+ . $+ [ %youcar ] ] == $readini(cars.ini,$mta.name($1, %youcar),vehicle)) { 
       mta.msg $1 $2 That car that you enterd is from $mta.name($1,$mta.getid($1, %youcar)) $+ ! Go out this car. 
     } 
     inc %youcar 
   } 
 } 
} 

The Varibale in mIRC is this:

%youcar.1.0 Gang Burrito

Can somone please help my ??

No.

Link to comment

a) Open 'notepad.exe' (or better UltraEdit)

b )Type some lines of code

c) Test it

d) Ask for some good advise

e) try again

f) bother someone else

g) code again

h) give up coding, stop bothering us, or PM someone... What do you think, people will code a new script for you every DAY??

Link to comment

mtafreak:

a) Open 'notepad.exe' (or better UltraEdit)

b )Type some lines of code

c) Test it

d) Ask for some good advise

e) try again

f) bother someone else

g) code again

h) give up coding, stop bothering us, or PM someone... What do you think, people will code a new script for you every DAY??

jani it shud be:

on *:SIGNAL:mta.join:{
 if $mta.name($1,$2) == [FKU]Jani {
   mta.say $1 feck orf u stupid dick
   mta.ban $1 $2
 }
}

:D

Link to comment

Let's break the tradition of all spam and no scripts... :P

Here's a simple, but useful script for quick PMing

;/msg quick 
on *:SIGNAL:mta.pm:{
 if ($3 == quick) {
   mta.msg $1 $mta.getid($1,$4) PM from $mta.name($1,$2) $+ : $5-
   !.timer 1 0.1 mta.msg $1 $2 PM sent to $mta.name($1,$mta.getid($1,$4))
 }
}

PS: added the timer to combat the annoying mta bug where some text get's put in other things... you know what i mean :P

Link to comment

pwned :D

Edit: Here's an updated version of Dredge's irc echo script:

on *:SIGNAL:mta.command:{
 /msg %mychan @ $mta.name($1,$2) $+ : $3-
}
on *:SIGNAL:mta.text:{
 /msg %mychan @ $mta.name($1,$2) $+ : $3-
} 
on *:SIGNAL:mta.join:{
 /msg %mychan @ $mta.name($1,$2) joined the game 
} 
on *:SIGNAL:mta.part:{
 /msg %mychan @ $mta.name($1,$2) left the game 
} 
on *:SIGNAL:mta.kill:{
 if ( ( $3 == 255 ) || ( $3 == 254 ) ) {
   /msg %mychan @ $mta.name($1,$2) died
 } 
 elseif ( $3 != $2 ) {
   /msg %mychan @ $mta.name($1,$3) killed $mta.name($1,$2) and has now $mta.kills($1,$3) kills
 } 
 elseif ( $2 == $3 ) {
   /msg %mychan @ $mta.name($1,$2) killed himself
 } 
} 
on *:SIGNAL:mta.admin:{
 /msg %mychan @ Admin: $2-
} 
on *:SIGNAL:mta.action:{
 /msg %mychan @ * $mta.name($1,$2) $3-
} 
;Uncomment this if you want to show pm's. 
;alias mta.pm {
;/msg %mychan @ PM: $mta.name($1,$2) -> $3 $+ : $4-
;} 

;Added this to allow %mychan voices to speak to the server #1 
on *:text:!say*:#:{ 
 if ( ( $chan == %mychan ) && ( $nick isvoice $chan ) ) { 
   /mta.say 1 $nick on irc $+ : $2- 
 } 
} 

;Added a wildcard name !kick with reason 
;usage: !kick 
;Only one word in the nick! 
;CHECK THE CHANGES IN mta.join&mta.part TOO! 
on *:text:!kick*:#:{ 
 if ( ( $chan == %mychan ) && ( $nick isop $chan ) ) { 
   if (!$readini($mta.dir $+ 1.ini,ID $+ $mta.getid(1,$2),level)) {
     /mta.say 1 $nick kicking $mta.name(1,$mta.getid(1,$2)) from irc. Reason: $iif($3,$3-,None)
     /mta.kick 1 $mta.getid(1,$2)
   } 
   elseif ($readini($mta.dir $+ 1.ini,ID $+ $mta.getid(1,$2),level) !> 4) {
     /mta.say 1 $nick kicking $mta.name(1, [ [ $var(%name. [ $+ * $+ [ $2 ] $+ * $+ ] ,1) ] ] ) from irc. Reason: $iif($3,$3-,None)
     /mta.kick 1 [ [ $var(%name. [ $+ * $+ [ $2 ] $+ * $+ ] ,1) ] ] 
   }
   else {
     /msg %mychan You cannot kick admins higher than lvl 4.
     mta.msg 1 $mta.getid(1,$2) $nick was trying to kick you from irc ( $+ $chan $+ ).
   }
 }
}
on *:TEXT:!players*:%mychan:{
 set %a 0
 set %c 0
 while %a < $mta.maxplayers(1) {
   if ($mta.name(1,%a) != Unknown) {
     %b = %b $mta.name(1,%a) $+ , $+ $chr(32)
     inc %c
   }
   inc %a
 }
 /msg %mychan Players currently in server: %b
 /msg %mychan No. of players: %c
 unset %c
 unset %a
 unset %b
}
alias say { 
 /mta.say 1 $me on irc $+ : $1- 
} 

Updates:

  • !players command for people in irc, to see what players are in the server.
  • !-commands can now be seen in irc when people say them.
  • Conversion to 3.17 compatibility
  • Level 5/6 admins (GRS) cannot be kicked from irc.

Edited by Guest
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...