Raised This Month: $32 Target: $400
 8% 

Simple Muter for Jailbreak servers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
The Terminator
Junior Member
Join Date: Mar 2013
Plugin ID:
3602
Plugin Version:
1.4
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Muter
    Old 03-31-2013 , 08:42   Simple Muter for Jailbreak servers
    Reply With Quote #1

    Hi, everyone. This is my first plugin (to post on the forums), but I've used it before. I used to own a jailbreak server myself, but I shut it down because players in my community didn't want it anymore. No point of wasting money haha. I used this for my server, and since I don't have one anymore I decided the release this. I might release a couple other plugins (jailbreak) that I made, but I'm not sure yet. Anyways, on to the actual plugin.

    What does it do?
    This simple plugin mutes all T's in the beginning so they can't talk over CT's. Once anybody dies, or if they're in spectator, it'll mute them as well. Very simple.

    ConVars
    sm_muter_enabled: 1 is default, and it simply enables/disables.

    That's pretty much it. If you guys have any questions or requests, post below and I will take into consideration. Thanks for checking my plugin out!
    Attached Files
    File Type: sp Get Plugin or Get Source (muter.sp - 786 views - 1.7 KB)
    File Type: smx muter.smx (3.2 KB, 325 views)
    The Terminator is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 03-31-2013 , 09:58   Re: Simple Muter for Jailbreak servers
    Reply With Quote #2

    this function included in SM_Hosties
    ilga80 is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 03-31-2013 , 10:27   Re: Simple Muter for Jailbreak servers
    Reply With Quote #3

    Duplicates of these , also less functional. And as ilga said this function is already included in hosties aswell.

    https://forums.alliedmods.net/showthread.php?p=1229913
    https://forums.alliedmods.net/showthread.php?p=1595631
    __________________

    Last edited by ecca; 03-31-2013 at 10:28.
    ecca is offline
    The Terminator
    Junior Member
    Join Date: Mar 2013
    Old 03-31-2013 , 11:49   Re: Simple Muter for Jailbreak servers
    Reply With Quote #4

    I had no knowledge there was any others. Thanks for bringing this to my attention.
    The Terminator is offline
    The End Is Near...
    Member
    Join Date: Dec 2012
    Location: Siberia
    Old 04-09-2013 , 07:53   Re: Simple Muter for Jailbreak servers
    Reply With Quote #5

    1. Нет смысла отключать микрофон игрокам в начале раунда - отключение уже производится при оживлении игрока

    2. Оптимизируем код
    PHP Code:
    new client GetClientOfUserId(GetEventInt(event"userid")),
        
    team GetClientTeam(client);

    if (
    team == || team == 2)
    {
        
    SetClientListeningFlags(clientVOICE_MUTED);
    }

    else if (
    team == 3)
    {
        
    SetClientListeningFlags(clientVOICE_NORMAL);
    }

    // Или 

    new client GetClientOfUserId(GetEventInt(event"userid"));

    switch (
    GetClientTeam(client))
    {
        case 
    12:
        {
            
    SetClientListeningFlags(clientVOICE_MUTED);
        }
        case 
    3:
        {
            
    SetClientListeningFlags(clientVOICE_NORMAL);
        }

    3. Приставку Action необязательно делать в данном случае

    4. Есть еще кое-что, если например игрок присоединился к Наблюдателям, то плагин не сработает, думаю стоит отловить еще player_team
    The End Is Near... is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:19.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode