room create prevention xD

Results 1 to 10 of 10
  1. #1
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    room create prevention xD

    well I was wondering, how can I prevent players making a room in event channel.. (I mean to let staff only making a room there xD).. is it in source code or XML xD ?


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

    Re: room create prevention xD

    It's source... check the channel name and if 'isadmingrade'

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

    Re: room create prevention xD

    Quote Originally Posted by qet123 View Post
    It's source... check the channel name and if 'isadmingrade'
    Oh okay thanks bro, I'll try it

  4. #4
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: room create prevention xD

    Use the search button.

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

    Re: room create prevention xD

    Quote Originally Posted by Wizkidje View Post
    Use the search button.
    What should I write exactly o.o

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

    Re: room create prevention xD

    Use Game-Serv/National Gunz Source files and search for it there, rom creation prevention is in there.

  7. #7
    Account Upgraded | Title Enabled! Rejain is offline
    MemberRank
    Jul 2012 Join Date
    201Posts

    Re: room create prevention xD

    Quote Originally Posted by Duluxe View Post
    Use Game-Serv/National Gunz Source files and search for it there, rom creation prevention is in there.
    Code:
    			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
    			{
    				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
    				pFindWidget->Show(false, false);
    				return false;
    			}
    Found it for you.
    Its in ZInterfaceListener.cpp under
    Code:
    class MStageCreateFrameCallerListener : public MListener{

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

    Re: room create prevention xD

    Quote Originally Posted by Rejain View Post
    Code:
    			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
    			{
    				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
    				pFindWidget->Show(false, false);
    				return false;
    			}
    Found it for you.
    Its in ZInterfaceListener.cpp under
    Code:
    class MStageCreateFrameCallerListener : public MListener{
    I remember writing that, hue.

  9. #9
    Account Upgraded | Title Enabled! Rejain is offline
    MemberRank
    Jul 2012 Join Date
    201Posts

    Re: room create prevention xD

    Quote Originally Posted by Vusion View Post
    I remember writing that, hue.
    I sad its from sahars source, i didnt know who coded it.

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

    Re: room create prevention xD

    Quote Originally Posted by Rejain View Post
    Code:
    			if(strstr(strlwr((char*)ZGetGameClient()->GetChannelName()), "event") && !ZGetMyInfo()->IsAdminGrade())
    			{
    				ZApplication::GetGameInterface()->ShowMessage("Staff members only can make a room in the Event Channel.");
    				pFindWidget->Show(false, false);
    				return false;
    			}
    Found it for you.
    Its in ZInterfaceListener.cpp under
    Code:
    class MStageCreateFrameCallerListener : public MListener{
    Thanks all for helping I appreciate that <3
    WORKED DELETE



Advertisement