Код за потвърждение: Избери целия код
#include <amxmodx>
#include <fun>
#include <zp50_core>
#include <zp50_gamemodes>
#include <zp50_class_nemesis>
new g_GameModeInfectionID
new g_GameModeMultiID
public plugin_init() register_plugin("Inf bmb for 1st Zombie", "1.0", "Shorty")
public plugin_cfg()
{
g_GameModeInfectionID = zp_gamemodes_get_id("Infection Mode")
g_GameModeMultiID = zp_gamemodes_get_id("Multiple Infection Mode")
}
public zp_user_infected_post(id)
{
new current_mode = zp_gamemodes_get_current()
if (current_mode != g_GameModeInfectionID && current_mode != g_GameModeMultiID && current_mode != ZP_NO_GAME_MODE) // ZP_NO_GAME_MODE used to give the 1st zm if admin used admin menu to make someone zm before any game mode start
return
if (zp_class_nemesis_get(id))
return
if (zp_core_is_first_zombie(id))
give_item(id, "weapon_hegrenade")
}