Hello again, thanks for the replys, i've made some change, but im not sure where to set the (agent_is_human, ":agent_no"),. The question is that i want when players enter my server they have a santa hat in all troops they choose(this is working now), and they have grenades equiped as only object, so i wanna unequip default items of agents. May i have 4 unequip "try" like the code or can i have it in one only?
(ti_on_agent_spawn, 0, 0, [],
[
(store_trigger_param_1, ":agent_no"),
(agent_is_human, ":agent_no"),
(call_script, "script_multiplayer_server_on_agent_spawn_common", ":agent_no"),
(try_begin),
(agent_get_item_slot, ":item_id", ":agent_no", 4), #ek_head
(gt,":item_id",-1), # even have a item there?
(agent_unequip_item, ":agent_no", ":item_id", 4),#ek_head
(try_end),
(try_begin),
(agent_get_item_slot, ":item_id", ":agent_no", 0),
(gt,":item_id",-1), # even have a item there?
(agent_unequip_item, ":agent_no", ":item_id", 0),
(try_end),
(agent_equip_item,":agent_no","itm_grenade", 0),
(agent_equip_item,":agent_no","itm_pirate_hat"),
(agent_set_wielded_item,":agent_no","itm_grenade",0),
]),