if( (get_user_weapon(id) != CSW_USP || get_user_weapon(id) != CSW_KNIFE) && cs_get_user_team(id) == CS_TEAM_CT && !g_weap[id])
{
strip_user_weapons(id)
fm_set_user_nvg(id)
give_item(id,"weapon_usp")
give_item(id,"weapon_knife")
g_weap[id] = 1
}
else if( get_user_weapon(id) != CSW_SCOUT && cs_get_user_team(id) == CS_TEAM_CT && g_weap[id])
{
strip_user_weapons(id)
fm_set_user_nvg(id)
give_item(id,"weapon_scout")
g_weap[id] = 0
}
其实g_weap[id]==0||g_weap[id]==1
大约可以用!g_weap[id||g_weap[id]来表示
至于你说的..为什么会一直洗武器,原因大概是 你没给他个停止给他个1就可以了