Guest Posted January 12, 2005 Share Posted January 12, 2005 im semi - new to scripting for mta im trying to make a script that welcomes a person when he joins the server would it be on *:SIGNAL:mta.join:command { mta.msg $1 $2 Welcome to the server! } Link to comment
Jani Posted January 12, 2005 Share Posted January 12, 2005 on *:SIGNAL:mta.join:{ mta.msg $1 $2 Welcome to the server! } mta.join and mta.command are triggered by different things, so you cant shove them both in the same event. Link to comment
Guest Posted January 12, 2005 Share Posted January 12, 2005 thanks alot man edit one more question, how whould i make it msg the player when when he types a comannd like !command on *:SIGNAL:mta.command:{ i know it involes using this event Link to comment
MeanpantheR Posted January 12, 2005 Share Posted January 12, 2005 on *:SIGNAL:mta.command:{ if ($3 == !command) { mta.say $1 Hammy Cheese } elseif ($3 == !command2) { mta.say $1 more cheese } } Link to comment
Guest Posted January 12, 2005 Share Posted January 12, 2005 i ran into a bit of a problem, it works but it says the message twice, anyone know why this would happen? Link to comment
[FMJ]chode Posted January 12, 2005 Share Posted January 12, 2005 could have the script loaded twice, click "reload" rather than "load" ps: !command Link to comment
[FMJ]chode Posted January 12, 2005 Share Posted January 12, 2005 well i just wanted to !command without spamming... Link to comment
Guest Posted January 12, 2005 Share Posted January 12, 2005 hrmm after i reloaded the script and reconnected to the server it worked thanks again Link to comment
Recommended Posts