But how to set if weaponid == CSW_M4A1?
PHP Code:
if(equal(className, "weaponbox") || equal(className, "armoury_entity") || equal(className, "grenade"))
{
engfunc(EngFunc_SetModel, entity, WORLD_MODEL)
return FMRES_SUPERCEDE
}
Without this:
PHP Code:
// checks if its the model we want to change
if(!equali(model, OLDWORLD_MODEL))
return FMRES_IGNORED
I whant to set about 20 models.
The very simple way like:
PHP Code:
if (weaponid == CSW_M4A1)
{
set_pev(id, pev_viewmodel2, "models/xxx/v_m4a1.mdl")
__________________