I have literally no idea what you are trying but this might work if you understood your code.
PHP Code:
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
public Event_CurWeapon(id)
{
if(get_user_weapon(id) != CSW_SCOUT)
{
// Code Here
SetUserDab(id, 1);
}
}