Okay so I have an issue that I saw the answer for before but could not find it now, I have searched and looked through the pages I thought it would be.
Sorry for yet another topic guys, but here's my question.
How would I get the location of a letter in a chat message
Like I want something like this:
package blabla
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%fmsg);
if(%name $= $Pref::Player::Netname)
{
if(inStr(%msg,"help"))
{
blabla
}
}
}
};
Anyways seeing as that explained next to nothing, I want something that when I type
JazZ: Hi there buddy !
It will send a message saying "JazZ: Hello"
But if I type
JazZ: Buddy, hi!
It will not send because the word "Buddy" is not the 3rd word or starts with the 10th letter
Is this possible with a client script?