Doesnt it has to be:
Code:
register_event("CurWeapon","changeWeapon", "be", "1=1")
Cuz u have:
Code:
register_event("CurWeapon","changeWeapon", "be". "1=1")
Its only a small thing, but might be wrong.
EDIT* And if I put this:
Code:
public switchmodel(id)
{
if ( !is_user_alive(id) || !gHasgundamPower[id] ) return
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
if (wpnid == CSW_M4A1)
Entvars_Set_String(id, EV_SZ_viewmodel, "models/shmod/gundam_m4a1.mdl")
}
}
And if I compile it, it says: unmatching closing brace, and it aborts. I looked and it has to be up here, but I cant find any wrong things, so plz someone help me?
And is it possible to play a sound when shooting with a pecific weapon? And when u switch to that weapon?
__________________