For some reason give_item(id, "weapon_shield") can't be called right after strip_user_weapons function. I used set_task with 0.1 interval to call another public to give shield.
Something like this
PHP Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
register_plugin("Plugin", "1.0", "Author");
register_concmd("say /get" , "test", ADMIN_BAN);
}
public test(id)
{
strip_user_weapons(id);
set_task(0.1, "give_shield", id)
return PLUGIN_HANDLED;
}
public give_shield(id)
{
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_shield");
return PLUGIN_HANDLED;
}
It worked for me