For denisa15:
PHP Code:
char MSGGMCommand[] = "/gg";
//Global MSG Private
if(!memcmp(&Protocol[13],MSGGMCommand,strlen(MSGGMCommand)))
{
ChatGMmsg(gObjId,(char*)Protocol+13+strlen(MSGGMCommand));
}
PHP Code:
void ChatGMmsg(int aIndex,char* msg)
{
//--------------------------------------------------------------------------------------------------------------------
int Activemsg = GetPrivateProfileInt("GlobalMSG","Active",1,".\\Aroth.ini");
int MSLevel = GetPrivateProfileInt("GlobalMSG","Level",100,".\\Aroth.ini");
//--------------------------------------------------------------------------------------------------------------------
if(aIndex <= OBJECT_MIN && aIndex >= OBJECT_MAX)
return;
//--------------------------------------------------------------------------------------------------------------------
if(aIndex > OBJECT_MAX)
return;
//--------------------------------------------------------------------------------------------------------------------
OBJECTSTRUCT * gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
//--------------------------------------------------------------------------------------------------------------------
if(Activemsg==0)
{
MsgNormal(aIndex,"[GMSYSTEM] : Command disabled.");
return;
}
//--------------------------------------------------------------------------------------------------------------------
if(gObj->Authority != 32)
{
MsgNormal(aIndex,"[GMSYSTEM] : Command only for GM's");
return;
}
//--------------------------------------------------------------------------------------------------------------------
if(gObj->Level < MSLevel)
{
MsgNormal(aIndex,"[GMSYSTEM] : You need %d level to use command.",MSLevel);
return;
}
//--------------------------------------------------------------------------------------------------------------------
MsgAll("[%s]: %s",gObj->Name,msg);
}
Lexa111: your files are rubbish.