Jump to content

scripting question


Guest CrazyFool

Recommended Posts

Posted

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!
}

Posted

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.

4m85g1y.png

Make sure to use the Search feature before posting a new topic.

Click here for detailed MTA: San Andreas server setup guides.

Posted

thanks alot man :twisted:

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

Posted

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

Posted

i ran into a bit of a problem, it works but it says the message twice, anyone know why this would happen?

Posted

could have the script loaded twice, click "reload" rather than "load"

ps: !command :lol:

edohc.gif

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.

Posted

well i just wanted to !command without spamming... :D

edohc.gif

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.

Posted

hrmm after i reloaded the script and reconnected to the server it worked

thanks again :)

  • Recently Browsing   0 members

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