Admin popup message.

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Admin popup message.

    I know it's easy.

    ZChat_Cmds.cpp
    Code:
    void popup(const char* line, const int argc, char **const argv);
    
    _CC_AC("admin_popup",		&popup,			                CCF_ADMIN, ARGVNoMin, 1 , true,"/admin_popup <message>", "");
    
    void popup(const char* line, const int argc, char **const argv)
    {
    	if (argc < 2) 
    	{
    		OutputCmdWrongArgument(argv[0]);
    		return;
    	}
    
    	char szMsg[256];
    	sprintf(szMsg,"%s : %s",ZGetMyInfo()->GetCharName(), argv[1]);
    	ZPostAdminAnnounce(ZGetGameClient()->GetPlayerUID(), szMsg, ZAAT_MSGBOX);
    }
    MMatchTransDataType.h
    Code:
    enum ZAdminAnnounceType
    {
    	ZAAT_CHAT = 0,
    	ZAAT_MSGBOX = 1
    };
    ZGameClient.cpp
    Code:
    void ZGameClient::OnAdminAnnounce(const char* szMsg, const ZAdminAnnounceType nType)
    {
    	char szText[512];
    	switch (nType)
    	{
    	case ZAAT_CHAT:
    		{
    			ZTransMsg( szText, MSG_ADMIN_ANNOUNCE, 1, szMsg );
    			ZChatOutput(szText, ZChat::CMT_SYSTEM);
    		} break;
    	case ZAAT_MSGBOX:
    		{
    			ZTransMsg( szText, MSG_ADMIN_ANNOUNCE, 1, szMsg );
    			ZApplication::GetGameInterface()->ShowMessage(szMsg);
    		} break;
    	}
    }

    Last edited by qet123; 21-08-12 at 02:13 PM.


  2. #2
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Admin popup message.

    I have it, You did something worng with this popup...
    Popup in game?... If you playing cw?...
    Do it like what i have in my server.
    Popup in lobby, In game regular wall.

  3. #3
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Admin popup message.

    Quote Originally Posted by sahar042 View Post
    I have it, You did something worng with this popup...
    Popup in game?... If you playing cw?...
    Do it like what i have in my server.
    Popup in lobby, In game regular wall.
    That's why it called "popup",they can use /admin_wall, i bet yours done like that:
    Code:
    	case ZAAT_CHAT:
    		{
    			ZTransMsg( szText, MSG_ADMIN_ANNOUNCE, 1, szMsg );
    			if(ZGetGame())
    			ZChatOutput(szText, ZChat::CMT_SYSTEM);
    			else
    			ZApplication::GetGameInterface()->ShowMessage(szMsg);
    		} break;
    anyway the main of popup is to popup in all the states.
    Last edited by qet123; 21-08-12 at 02:41 PM.

  4. #4
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Admin popup message.

    Having it ingame too is like useless , other than that it's good I guess.

  5. #5
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: Admin popup message.

    i wonder /admin_wall how do i remove Administrator when announcing?

    Nice Release qet123

  6. #6
    Kyura Ryukrey is offline
    MemberRank
    Jan 2010 Join Date
    ItalyLocation
    354Posts

    Re: Admin popup message.

    Is not better only a normal Text on the center of monitor? without obbligate the player to press Ok or to see nothing?

  7. #7
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: Admin popup message.

    make 2 admins walls so people can use sometimes the pop up for telling about updates or restarts
    and the normal wall ..

    or u did it?

  8. #8
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Admin popup message.

    Quote Originally Posted by bulli10 View Post
    make 2 admins walls so people can use sometimes the pop up for telling about updates or restarts
    and the normal wall ..

    or u did it?
    I prefer an update command with a countdown timer , hence it running it d/cs all players and closes the processes or doesn't show the server.

  9. #9
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Admin popup message.

    Quote Originally Posted by bulli10 View Post
    make 2 admins walls so people can use sometimes the pop up for telling about updates or restarts
    and the normal wall ..

    or u did it?
    Yeah, lolz. if you understand the codes, it means that i added admin_popup plus to admin_wall

  10. #10
    Proficient Member wayutok is offline
    MemberRank
    Oct 2011 Join Date
    198Posts

    Re: Admin popup message.

    how to add this?i mean it is replace or add,,what is # lines?

  11. #11
    Reality, What is? Rain is offline
    MemberRank
    Jan 2009 Join Date
    PhotoshopLocation
    804Posts

    Re: Admin popup message.

    The popup idea is awesome,but it should only be used if the server reset's so everyplayer knows whats going to happen,Even though there is alread a default one but since the amount of focus that is putted into the game most player wont read it.

    Plus the fact that most people toggle off general chat this popup would be very handy.

    Tip for user's.
    it would really be better if people just use it as a Serious announcement and not just for fun like saying i'm back or i'm online or whatnot,its best to let only admins do this function and not any other grade.

    awesome function bro.

  12. #12
    Proficient Member wayutok is offline
    MemberRank
    Oct 2011 Join Date
    198Posts

    Re: Admin popup message.

    it is adding or replace the codes??>

  13. #13
    Balance Elian is offline
    MemberRank
    Sep 2009 Join Date
    StarLocation
    1,768Posts

    Re: Admin popup message.

    Meh, there are alot of losers that will annoy people with this. (yes we have loser-owners)

  14. #14
    Valued Member Dolan is offline
    MemberRank
    Aug 2012 Join Date
    100Posts

    Re: Admin popup message.

    Going to be very annoying if a admin uses that in game.
    No one doesn't want to see that pop-up and someone is 1hp and is about to die...

    Other than that,Nice Release.

  15. #15
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Admin popup message.

    Quote Originally Posted by Dolan View Post
    Going to be very annoying if a admin uses that in game.
    No one doesn't want to see that pop-up and someone is 1hp and is about to die...

    Other than that,Nice Release.
    Who cares what the enemy's hp is when the server is turning off or restarting?



Page 1 of 2 12 LastLast

Advertisement