How do I get the other weapons removed once these are given? Because when a player has an M3 and is given new weapons on the next round, he still keeps the M3. I need the old weapons the player had removed and only the new ones (also the C4 for T's) given.
PHP Code:
public rifles(id)
{
if(rifles_active[id] == 1)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_defuse(id, 0)
give_item(id, "weapon_glock18")
give_item(id, "weapon_deagle")
give_item(id, "weapon_ak47")
give_item(id, "weapon_awp")
}
if(cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_defuse(id, 1)
give_item(id, "weapon_usp")
give_item(id, "weapon_deagle")
give_item(id, "weapon_m4a1")
give_item(id, "weapon_awp")
}
}
}