MQ2AutoGroup
Posted: Sun Mar 24, 2013 4:52 pm
For some reason my alts used to auto accept any invite to a group when invited. It might just be a mq2 option or another plugin I can't find. Anyways here is my version of this.
Code: Select all
#include "../MQ2Plugin.h"
PreSetup("MQ2Autogroup");
PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
PSPAWNINFO pMe = GetCharInfo()->pSpawn;
if(strstr(Line,"invites you to join a group."))
{
WriteChatColor("Invite detected",CONCOLOR_YELLOW);
DoCommand(pMe, "/invite");
}
return 0;
}