Raised This Month: $51 Target: $400
 12% 

[CSGO-Req] weapon sounds changer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 08-12-2018 , 16:35   Re: [CSGO-Req] weapon sounds changer
Reply With Quote #11

But it just works for player who doesn't have this weapon/knife in the hand. Used this code as example/test:
Code:
#include <sourcemod>
#include <sdktools>

#pragma newdecls required

public void OnPluginStart()
{
    AddNormalSoundHook(SoundHook);
}

public Action SoundHook(int clients[64], int &numClients, char sound[PLATFORM_MAX_PATH], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags)
{
    PrintToChatAll(sound);
    return Plugin_Stop;
}
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara 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 02:52.


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