Mr.jacksaunt gave me a script called client greet
I was trying to fine tune it to make it work for my needs but I ran into a problem If somebody types "connected" or "<stuff here> connected"
It activates the script is there any way you can check for connection of a player?
I'm not all that good a scripting so I need some help.
package niceToGreetYou
{
function newChatHud_addLine(%text)
{
//Called when any line of text is added to the chat box
Parent::newChatHud_addLine(%text);
//This will turn the "Destiny connected." into "Destiny"
%nameToGreet = strReplace(%text," connected.","");
//If the %nameToGreet variable is different to the original line greet them,
//otherwise it's something else
if(%nameToGreet !$= %text)
{
//Send a chat message saying hi to the player who joined (%nameToGreet)
commandtoserver('messagesent',"Hey, " @ %nameToGreet);
}
}
};
activatePackage(niceToGreetYou);