1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Radio Sounds Plugin Fix

Discussion in 'Requests' started by btup22, Oct 30, 2018.

  1. btup22

    btup22 Clockwork Customer

    If someone could restore/update this plugin, that'd be pretty cool.
    http://plugins.cloudsixteen.com/plugin/radiosounds/view
    Code:
    local PLUGIN = PLUGIN;
    
    -- Called when a player's typing display has started.
    function PLUGIN:PlayerStartTypingDisplay(player, code)
        if (player:HasItemByID("handheld_radio") and !player:IsNoClipping()) then
            if (code == "r") then
                if (!player.typingBeep) then
                    player.typingBeep = true;
                  
                    player:EmitSound("npc/overwatch/radiovoice/on1.wav");
                end;
            end;
        end;
    end;
    
    -- Called when a player's typing display has finished.
    function PLUGIN:PlayerFinishTypingDisplay(player, textTyped)
        if (player:HasItemByID("handheld_radio") and textTyped) then
            if (player.typingBeep) then
                player:EmitSound("npc/overwatch/radiovoice/off4.wav");
            end;
        end;
      
        player.typingBeep = nil;
    end;
     

Previous Readers (Total: 0)