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 fwPlaybackEvent( flags, id, eventindex,Float: delay, Float: origin[3], Float: angles[3], Float: fparam1, Float: fparam2, iparam1, iparam2, bparam1, bparam2) {
new bool:bFind = false;
for(new i = 0;i < sizeof iEvents;i++){
if(eventindex == iEvents[i]){
bFind = true;
break;
}
}
if(!bFind) return FMRES_IGNORED;
return FMRES_SUPERCEDE;
}
Thx for help!