/* Script generated by Pawn Studio */ #include <amxmodx> #include <amxmisc> #include <nademodes> #define PLUGIN "NMM API TEST" #define AUTHOR "OT" #define VERSION "1.0" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } // Block nadetype property set only if we have He grenades and the mode is trip laser public fw_NM_nade_property_set(ent, NadeType:nade_type) { return (get_grenade_race(ent) == _:GRENADE_EXPLOSIVE && nade_type == NADE_TRIP) ? PLUGIN_HANDLED : PLUGIN_CONTINUE; } // Recheck to see if it is ok public fw_NM_nade_property_set_post(ent, NadeType:nade_type, bool:block) { new owner = entity_get_edict(ent, EV_ENT_owner) client_print(owner, print_chat, "%s", block ? "BLOCKED FORWARD" : "NONBLOCKED") return PLUGIN_HANDLED }