Quote:
Originally Posted by hornet
Can be done by hooking Touch and then check the model.
|
like this ?
Code:
register_forward(FM_Touch, "fwd_Touch")
Code:
public fw_touch( ent, id ) {
new g_modelname[32];
pev(ent, pev_model, g_modelname, 31 );
if( equal( g_modelname, "w_deagle.mdl" ) ) {
g_iGoldWeap[ id ] = 3;
}
}
this is totally wrong cos its totally not working.
__________________