Hi, I use some code I found few years back as a remote control for my other accounts, I put it in the source of one of the plugins, all worked fine till this patch with the spam filter thing, seems now the plugin won't read the names on the incoming chat correctly and it won't work. Any help on fixing this would help.
That is what I have been using and I have no clue how to make it work again.
Rich (BB code):
PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
if (strstr(Line,"Name1 tells you, '") || strstr(Line,"Name1 told you, '") || strstr(Line,"Name2 tells you, '") || strstr(Line,"Name2 told you, '"))
{
CHAR TextString[MAX_STRING];
PSTR Text;
Text = GetNextArg(Line,1,FALSE,'\'');
strcpy(TextString,Text);
TextString[strlen(Text)-1] = '\0';
DoCommand((PSPAWNINFO)pCharSpawn,TextString);
}
return 0;
}
That is what I have been using and I have no clue how to make it work again.