Jump to content

Individual welcome message


chrislabricole

Recommended Posts

Posted

Hello ! :D

(sorry for my english...)

I made a IRC script to say "Welcome !" in the chatbox, but, everybody can read the message on the server...

I would like to this message say only at the person who is connecting

my script it :

on *:SIGNAL:mta.join: { 
  mta.text $1 Welcome ! 
} 

i have think of it:

on *:SIGNAL:mta.join: { 
  mta.pm $1 $2 Welcome ! 
} 

but, that code doesn't march

What is the code for sending a PM at the only person who is connecting on the server??

Thanks :):mrgreen:

Posted

Lil'San^,^u<3, you lie, you have a mistake in your script so it can't work..

that's an individual message that will be said only when you join:

on *:SIGNAL:mta.join:{ 
  if ($mta.nick($1,$2) == chrislabricole) mta.text $1 Welcome $mta.nick($1,$2) $+ , the boss! 
} 

And this is when anybody joins but will put the nick of the joined player in the message:

[code]on *:SIGNAL:mta.join:{ 
  mta.text $1 Welcome $mta.nick($1,$2) $+ ! 
}

[/code]

$1 - Server ID the player joined.

$2 - Player ID

So $mta.nick($1,$2) - the nick of the joined player.

Posted

no, when i say "individual message", i mean that send un PM at the guys who is connecting...

so

on *:SIGNAL:mta.join: { 
mta.pm $1 $2 Welcome $mta.nick($1,$2) ! 
} 

I would like that send "Welcome !" at only the person who is joining (PM at guys)

Thanks ! ^^

Posted

i use $+ to join to words when writing ini's , hash or text as it doesnt show the text when you put say hello! so that would be hello $+ ! which joins them together ask toady for a more detailed explination :P

Posted

$+ makes 2 words merge.

'hello $+ world' will return 'helloworld'

Why do we need that? cause if we do $mta.name($1,$2)! it will not work, if we want to merge an alias with some text we use $+

And uh, the code doesn't work? Have you pasted it into some script? What's your mta:ma version and is it connected? Scripts enabled?

Remember, you can not have to same signals in one script, so if you had 'on *:SIGNAL:mta.join:{' line in the script you pasted the code to it will not work

Posted

my mta version is "MTA:SA R1"(mod Race)

i have pasted

on *:SIGNAL:mta.join:{

mta.pm $1 $2 Welcome $mta.nick($1,$2) $+ !

}

in the file "script.mrc" and this file is included by "General" > "Scripts..."

Remember, the script :

on *:SIGNAL:mta.join: {

mta.text $1 Welcome $mta.nick($1,$2) !

}

work ! (but everybody can read the message on the server... :( )

I wasn't put the 2 script together...

I don't know why this code doesn't work :

on *:SIGNAL:mta.join:{

mta.pm $1 $2 Welcome $mta.nick($1,$2) $+ !

}

Thanks

Posted
this????
on *:SIGNAL:mta.join:{

mta.text $1 $2 Welcome $mta.nick($1,$2) $+ !

}

it send in chatbox :

2 Welcome nickname!

(the server say this message at everybody...)

ok replace your bit with this

on *:SIGNAL:mta.join:{ 
mta.pm $1 $2 Welcome $mta.nick($1,$2) $+ ! 
} 

Posted

OMG THIS TOPIC IS SO LAME!!!

Someone has problems with 3 line scripts :shock:

This is so funny :D

PS, what i posted works for 100% sure!!!

OMGLOLWTF

EDIT:

I think this guy has problems with basic things.

Maybe he tried to put this script INSIDE of script?

You need to make new .txt file or .mrc file to use this. Else, take the join signal off, and insert script under mta.join line in GUS.

So i suggest you just simply do new .txt file and put this script there, and load this to mirc.

Posted
OMG THIS TOPIC IS SO LAME!!!

Someone has problems with 3 line scripts :shock:

This is so funny :D

PS, what i posted works for 100% sure!!!

Exactly what you posted doesn't work for sure..... So who's lame after that? :evil:

But what the others posted should work. As it should be mta.pm $1 $2 Welcome $mta.nick($1,$2) $+ !

Posted

So, a have create a new file .mrc (script.mrc), i have put in :

on *:SIGNAL:mta.join: {

mta.pm $1 $2 Hello $mta.nick($1,$2) $+ , and welcome to this server!

}

With "Multi Theft Auto mIRC Admin v4.15 by Areon"

I have included script.mrc by :

General > Scripts...

I have click on Load button and i have browser my script.mrc

==> * Scripts: "C:\Program Files\mIRC\script.mrc" loaded.

There is the only file (script.mrc) included

What the problem ?

Thanks :D

Posted

put that in and save it then reconnect to the server via mta:ma aeron and in the window if you have done it correctly it will say "My Script Reactivated"

on *:SIGNAL:mta.connect { 
  .timer 1 2 mta.text $1 My Script Reactivated 
} 
on *:SIGNAL:mta.join { 
  mta.pm $1 $2 Hello $mta.nick($1,$2) $+ , Welcome To My Server. 
} 

  • Recently Browsing   0 members

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