AddTempEntHook("Shotgun Shot", Hook_FireBullets);
public Action:Hook_FireBullets(const String:te_name, const Players, numClients, Float:delay)
new client = 0;
for (new i = 1; i <= MaxClients;i++)
new bool:Found = false;
for (new a = 0; a < numClients;a++)
if(Players[a] == i)
Found = true;
client = i;
if(client == 0)
new weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
if(weapon == -1)
// client is the player that fired the weapon
// weapon is the weapon that was fired.
I have no clue why the temp ent is "Shotgun Shot" but it actually works.