There are game events when player shoved something.
Everytime when player shove, it play sound.
PHP Code:
#include <sdktools>
public void OnPluginStart()
{
AddNormalSoundHook(soundhook);
}
public Action soundhook(int clients[MAXPLAYERS], int &numClients, char sample[PLATFORM_MAX_PATH],
int &entity, int &channel, float &volume, int &level, int &pitch, int &flags,
char soundEntry[PLATFORM_MAX_PATH], int &seed)
{
if(entity > 0 && entity <= MaxClients
&& StrContains(sample, ")player/survivor/swing/", false) == 0)
{
PrintToServer("Player %N shoved", entity);
}
}
__________________