How to add some code while I shot with guns? I've made some effects, but I don' know how to add them.
I don't know how to do this:
Code:
if( player is shoting(id) ) //this is what I don't know
{
//my code to set some effects for all weapons
}
And how to add some code while I shot only with that gun.
Code:
if( player is shoting(id) ) && (weapon is crossbow)
{
// my cod to set the effects only for weapon crossbow
}
Anyone could give me some examples, andif you have time, can you please give me a url/post all the weaopn names from half-life(not cstrike).
I need this to finish my plugin.
I'll give +karma If you help me.