If a player buys or picks up a weapon, he becomes the owner of that weapon.
The player's id gets assigned to pev_owner of the weapon.
What that stock does is go through all the weapons & check if the weapon belongs to the id that is passed as the thirth param of the function.
It are these that change the fire rate.
PHP Code:
static Float:Delay,Float:M_Delay
Delay = get_pdata_float( Ent, 46, 4) * N_Speed
M_Delay = get_pdata_float( Ent, 47, 4) * N_Speed
if (Delay > 0.0)
{
set_pdata_float( Ent, 46, Delay, 4)
set_pdata_float( Ent, 47, M_Delay, 4)
}
__________________