Yes OnAdminAnnounce with 1 shows a popup!
and thanks for your code, I can even automatically undisplay the pop up,
pMsgBox->Show(true, true);
Sleep(desiredtime);
pMsgBox->Show(0, 0); //popup disappear
Also thank you Austrium, where can i get that PDB?
Oh by the way, using ^ made it to show up "^2My message"
the ^2Won't turn the message color. It does displayes the ^2 along with the message
I got to change the chat color using another function,
ZCombatChat, I have no idea why but it works instead of ZChatOutput
oh by the way the popup function may come in handy
Code:
void Popup(char* szMsg, int nType) //0normal -1popup
{
MUID *uid = new MUID();
uid->LowID=0;//MAIET is so stupid, you can create your own MUID
uid->HighID=GetMe();
sprintf(szBuffer,"%s: %s",GetCharName(),szMsg);
if(strlen(szBuffer)>128)
{
ZChatOutput("The message is too long.",1,0,0xFFFFFFFF);
}
else
{
ZPostAdminAnnounce(uid,szBuffer,nType);
}
}