1.
Code:
public giveArma(id, key)
{
//This is the menu
if (key == 4)
{
}else if (key == 0){
give_item(id, "weapon_ak47")
engclient_cmd(id, "drop", "weapon_awp")
engclient_cmd(id, "drop", "weapon_m4a1")
client_print(id, print_chat, " Am ales 1 optiune")
} else if (key == 1) {
give_item(id, "weapon_m4a1")
engclient_cmd(id, "drop", "weapon_awp")
engclient_cmd(id, "drop", "weapon_ak47")
client_print(id, print_chat, " Am ales a 2 optiune")
} else if (key == 2) {
give_item(id, "weapon_usp")
engclient_cmd(id, "drop", "weapon_awp")
engclient_cmd(id, "drop", "weapon_ak47")
engclient_cmd(id, "drop", "weapon_m4a1")
client_print(id, print_chat, " Am ales a 3 optiune")
set_user_armor(id, 200)
}else if (key == 3){
give_item(id, "weapon_usp")
client_print(id, print_chat, " Am ales a 4 optiune")
}
}
Code:
engclient_cmd(id, "drop", "weapon_m4a1")
but the player will still can pickup that weapon after he droped.