Raised This Month: $ Target: $400
 0% 

Silent shooting - command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
F0RCE
Senior Member
Join Date: Oct 2010
Old 01-04-2013 , 15:48   Silent shooting - command
Reply With Quote #1

Hello, I found a really nice plugin.
This video show how it works : http://www.youtube.com/watch?v=-YrRx...layer_embedded

It is making the sound of guns silent (You can hear only Your sounds)
And here is my request. I can't make it to work with command.
I want play to choose with command /silent or /mute.

PHP Code:
#pragma semicolon 0
#include <amxmisc>
#include <fakemeta>

new iEvents[] = {20,12,18,17,23,24,15,10,11,22,13,21,14,16,27,28,4,6,3,7,8,9,2,1,5}

public 
plugin_init() {
    
register_plugin("Blokujemy dzwieki""1.0""DarkGL")
    
register_forward(FM_PlaybackEvent"fwPlaybackEvent");
}

public 
fwPlaybackEventflagsideventindex,FloatdelayFloatorigin[3], Floatangles[3], Floatfparam1Floatfparam2iparam1iparam2bparam1bparam2) {
    new 
bool:bFind false;
    
    for(new 
0;sizeof iEvents;i++){    
        if(
eventindex == iEvents[i]){
            
bFind true;
            break;
        }
    }
    
    if(!
bFind)    return FMRES_IGNORED;
    
    return 
FMRES_SUPERCEDE;

Thx for help!
F0RCE is offline
 



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 13:39.


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