1
Modification Help / Funky Shirt
« on: July 05, 2015, 07:01:28 PM »
Is the FunkyShirt add-on still a thing? I swear I saw one a day ago and was wondering if anyone knew anything about it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
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);
exec("add-ons/client_chatscript/server.cs");
activatePackage(niceToGreetYou);