WhatsApp Discord
Sources PostVIP "EMU" - Source Mu - Mu Server Files AccountLevel] == 0) { GDGlobalP..."> AccountLevel] == 0) { GDGlobalP...">
 

Noticias:

SMF - Just Installed!

Menú principal

Sources PostVIP "EMU"

Publicado por Dakosmu, Jun 07, 2024, 06:10 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Dakosmu


Sources PostVIP "EMU"




CommandManager.cpp

bool CCommandManager::CommandPost(LPOBJ lpObj,char* arg) // OK{


    gFilter.CheckSyntax(arg);


    if (gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 0)
    {
        GDGlobalPostSend(gMapServerManager.GetMapServerGroup(),0,lpObj->Name,arg);
       
     }


      if (gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 1)
    {
        PostMessage2(lpObj->Name,gMessage.GetMessage(1534),arg);
       
     }
    if(gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 2)
    {
        PostMessage3(lpObj->Name,gMessage.GetMessage(1535),arg);
       
    }


      if(gServerInfo.m_CommandPostVIP[lpObj->AccountLevel] == 3)
    {
        PostMessage4(lpObj->Name,gMessage.GetMessage(1536),arg);
       
    }


    gLog.Output(LOG_COMMAND,"[CommandPost][%s][%s] - (Message: %s)",lpObj->Account,lpObj->Name,arg);


    return 1;

}

ServerInfo.H

int m_CommandPostVIP[MAX_ACCOUNT_LEVEL];
ServerInfo.CPP

this->m_CommandPostVIP[0] = GetPrivateProfileInt(section,"CommandPostVIP_AL0",0,path);

    this->m_CommandPostVIP[1] = GetPrivateProfileInt(section,"CommandPostVIP_AL1",1,path);


    this->m_CommandPostVIP[2] = GetPrivateProfileInt(section,"CommandPostVIP_AL2",2,path);



    this->m_CommandPostVIP[3] = GetPrivateProfileInt(section,"CommandPostVIP_AL3",3,path);


Message.txt

1534        "[FREE] %s"
1535        "[VIP1] %s"
1536        "[VIP2] %s"


Creditos
Odisk
Bon Dia

ThedevI2025

Praise for sharing and God bless!
I wish those who share a lifetime of happiness!

🡱 🡳
Real Time Web Analytics