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就可以了