Use this instead, no need to use ReAPI:
PHP Code:
#include <zombie_escape>
public plugin_init()
{
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS", "1.0", "Null")
}
public ze_user_humanized(id)
{
// Not Admin? Exit the function...
if (!get_user_flags(id) & ADMIN_LEVEL_H)
return
set_task(0.1, "Give_M249", id)
}
public Give_M249(id)
{
// Give M249
give_item(id, "weapon_m249")
cs_set_user_bpammo(id, CSW_M249, 200)
// Give x2 Fire Nades
give_item(id, "weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
// Give x2 Frost Nades
give_item(id, "weapon_flashbang")
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
}
ReAPI:
https://dev-cs.ru/resources/73/
__________________