Código:
#include <amxmodx>
#include <zombie_plague_advance>
#define PLUGIN "NVG Modos"
#define VERSION "1.0"
#define AUTHOR "Dexter"
native zp_is_berserker_round()
public plugin_init()
{
register_plugin( "[ZP] NVG Modos", "1.0" , "Dexter" )
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public event_round_start()
{
static id
for (id = 1; id <= get_maxplayers(); id++)
{
set_task(0.1, "berserker_nvg", id, _, _, "b")
set_task(0.1, "sniper_nvg", id, _, _, "b")
set_task(0.1, "survivor_nvg", id, _, _, "b")
}
}
public berserker_nvg(id)
{
if (is_user_connected(id))
{
if (zp_is_berserker_round())
zp_set_user_nightvision(id, 1)
}
}
public sniper_nvg(id)
{
if (is_user_connected(id))
{
if (zp_is_sniper_round())
zp_set_user_nightvision(id, 1)
}
}
public survivor_nvg(id)
{
if (is_user_connected(id))
{
if (zp_is_survivor_round())
zp_set_user_nightvision(id, 1)
}
}
Nigthvision ira pega apenas nos modos sniper,survivor e berserker
Créditos BY: Dexter