Guest Posted January 12, 2005 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! }
Jani Posted January 12, 2005 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. Make sure to use the Search feature before posting a new topic. Click here for detailed MTA: San Andreas server setup guides.
Guest Posted January 12, 2005 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
MeanpantheR Posted January 12, 2005 Posted January 12, 2005 on *:SIGNAL:mta.command:{ if ($3 == !command) { mta.say $1 Hammy Cheese } elseif ($3 == !command2) { mta.say $1 more cheese } } MTA Server Hosting (pm me for details!) VCES / SAES Clan Member - VCES.net
Guest Posted January 12, 2005 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?
[FMJ]chode Posted January 12, 2005 Posted January 12, 2005 could have the script loaded twice, click "reload" rather than "load" ps: !command Associate production coordinating directorial associate managing departmental division office supervisor of the international network amalgamation distributors corporation management organizational association of men who like pussy.
Oli Posted January 12, 2005 Posted January 12, 2005 not possible Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
[FMJ]chode Posted January 12, 2005 Posted January 12, 2005 well i just wanted to !command without spamming... Associate production coordinating directorial associate managing departmental division office supervisor of the international network amalgamation distributors corporation management organizational association of men who like pussy.
Guest Posted January 12, 2005 Posted January 12, 2005 hrmm after i reloaded the script and reconnected to the server it worked thanks again
Recommended Posts