Admin wall message confirmer.

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

    Admin wall message confirmer.

    Let's make this forum active again

    ZChat_Cmds.cpp
    Code:
    void ChatCmd_AdminAnnounce(const char* line, const int argc, char **const argv)
    {
    	if (argc < 2) 
    	{
    		OutputCmdWrongArgument(argv[0]); return;
    	}
            char szConfirm[1500];
    	sprintf(szConfirm,"^1Announce: ^2%s ?",argv[1]);
    	memcpy(ZGetConfiguration()->GetEtc()->szAnnounce, argv[1], sizeof(argv[1]) + 64);
    	ZApplication::GetGameInterface()->ShowConfirmMessage(szConfirm, ZGetPostAdminWall());
    }
    ZConfiguration.h
    Code:
    struct ZCONFIG_ETC{
    	char        szAnnounce[1500];
    };
    #define Z_ETC_ANNOUNCE	(ZGetConfiguration()->GetEtc()->szAnnounce)
    InterfaceListener.cpp
    Code:
    class ZPostAdminWall : public MListener{
    public:
    	virtual bool OnCommand(MWidget* pWidget, const char* szMessage){
    		if(MWidget::IsMsg(szMessage, MMSGBOX_YES)== true){
    			char szMsg[1000];
    			sprintf(szMsg,"%s : %s",ZGetMyInfo()->GetCharName(),ZGetConfiguration()->GetEtc()->szAnnounce);
    			ZPostAdminAnnounce(ZGetGameClient()->GetPlayerUID(), szMsg, ZAAT_CHAT);
    		} else { 
    		}
    		pWidget->Show(false);
    		return false;
    	}
    } g_ConfirmAdminWall;
    
    MListener* ZGetPostAdminWall()
    {
    	return &g_ConfirmAdminWall;
    }
    ZInterfaceListener.h
    Code:
    DECLARE_LISTENER(ZGetPostAdminWall);

    Last edited by qet123; 07-10-12 at 03:55 PM.


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

    Re: Admin wall message confirmer.

    Actually kind of usefull, double checking your grammer n shit :D

  3. #3
    Alpha Member Chrisss is offline
    MemberRank
    Feb 2012 Join Date
    Ask the Fox!Location
    1,660Posts

    Re: Admin wall message confirmer.

    Nice releasse, ill use it xD

    +1

  4. #4
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Admin wall message confirmer.

    Thank you bro, I'll use it, keep releasing cuz I like your releases :)

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

    Re: Admin wall message confirmer.

    does is say how many people clicked yes /no?

  6. #6
    Apprentice george3 is offline
    MemberRank
    Aug 2010 Join Date
    13Posts

    Re: Admin wall message confirmer.

    Freestylegunz has it...

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

    Re: Admin wall message confirmer.

    Quote Originally Posted by george3 View Post
    Freestylegunz has it...
    what then?

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

    Re: Admin wall message confirmer.

    Quote Originally Posted by bulli10 View Post
    does is say how many people clicked yes /no?
    How is this question even relevant... Only 1 person can click yes/no and thats the person that uses admin_wall...

  9. #9
    Daemonsring Developer Gunblade is offline
    MemberRank
    Jul 2007 Join Date
    On the moonLocation
    728Posts

    Re: Admin wall message confirmer.

    Nice release!

  10. #10
    Apprentice Klui is offline
    MemberRank
    Sep 2012 Join Date
    C:\Peru\LimaLocation
    21Posts

    Re: Admin wall message confirmer.

    very nice qet123.

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

    Re: Admin wall message confirmer.

    Quote Originally Posted by Elian View Post
    How is this question even relevant... Only 1 person can click yes/no and thats the person that uses admin_wall...
    i meant if is count the votes?

  12. #12
    Account Upgraded | Title Enabled! Mitcho is offline
    MemberRank
    Dec 2011 Join Date
    AdminCPLocation
    339Posts

    Re: Admin wall message confirmer.

    Quote Originally Posted by bulli10 View Post
    i meant if is count the votes?
    It's just if you want to be sure that you want to send this message to public.

  13. #13
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Admin wall message confirmer.

    i'm realy like this confurm before the wall send
    nice idea

    - Tankado

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

    Re: Admin wall message confirmer.

    Quote Originally Posted by bulli10 View Post
    i meant if is count the votes?
    What votes... If you put this in your client and you want to announce something you type /admin_wall *text*
    When you press answer this box will popup and will ask you if you want it to be announced or not. If the message is correct you just press OK and it will be announced. ONLY YOU CAN SEE THAT BOX. No need for voting if there is only 1 person that can see it.

    Understand? Great.

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

    Re: Admin wall message confirmer.

    Quote Originally Posted by Elian View Post
    What votes... If you put this in your client and you want to announce something you type /admin_wall *text*
    When you press answer this box will popup and will ask you if you want it to be announced or not. If the message is correct you just press OK and it will be announced. ONLY YOU CAN SEE THAT BOX. No need for voting if there is only 1 person that can see it.

    Understand? Great.
    no try again please ...



Page 1 of 2 12 LastLast

Advertisement