Block special events channel articles

Results 1 to 4 of 4
  1. #1
    Enthusiast FreshGUNZ is offline
    MemberRank
    Sep 2013 Join Date
    36Posts

    Block special events channel articles

    I need to block the special items in the channel events from my server because when personal create a room for an event with 16 people and throw a tear gas bomb gunz are closed to all users who are in the room.


    Please help


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

    Re: Block special events channel articles

    Just use a No Items tag [NI] when doing an event.

    FIND:
    Code:
    case MMCIP_CUSTOM2:
    Edit all that case to:

    Code:
    case MMCIP_CUSTOM2:
    		{
    			if (pDesc->m_nType.Ref() != MMIT_CUSTOM) 
    			{
    				return false;
    			}
    			if(strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[ni]"))
    			{
    				ZPostRequestTakeoffItem( ZGetGameClient()->GetPlayerUID(), MMCIP_CUSTOM1 );
    				ZPostRequestTakeoffItem( ZGetGameClient()->GetPlayerUID(), MMCIP_CUSTOM2 );
    				return false;
    			}
    		}
    		break;
    Also, find:

    Code:
    case MMCIP_COMMUNITY2:
    Replace whole case with:

    Code:
    case MMCIP_COMMUNITY2:
    		{
    			if (pDesc->m_nType.Ref() != MMIT_COMMUNITY) 
    			{
    				return false;
    			}
    			if(strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[ni]"))
    			{
    				ZPostRequestTakeoffItem( ZGetGameClient()->GetPlayerUID(), MMCIP_COMMUNITY1 );
    				ZPostRequestTakeoffItem( ZGetGameClient()->GetPlayerUID(), MMCIP_COMMUNITY2 );
    				return false;
    			}
    		}
    		break;
    This should work.

  3. #3
    Enthusiast FreshGUNZ is offline
    MemberRank
    Sep 2013 Join Date
    36Posts

    Re: Block special events channel articles

    thank you very much
    ----------------------

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

    Re: Block special events channel articles

    Quote Originally Posted by FreshGUNZ View Post
    thank you very much
    ----------------------
    Glad to help.



Advertisement