Okay, i tried this:
PHP Code:
public emp_start(id)
{
switch( get_user_team(id) )
{
case 1:
{
server_cmd("mp_flashlight 1")
server_cmd("zp_triggered_lights 1")
server_cmd("zp_nvg_hum_color_R 100")
server_cmd("zp_nvg_hum_color_G 100")
server_cmd("zp_nvg_hum_color_B 100")
server_cmd("zp_flare_duration 60")
server_cmd("zp_flare_size 25")
server_cmd("zp_lighting b")
client_cmd(0, "hud_draw 1")
server_cmd("sv_voiceenable 1")
client_cmd(0, "crosshair 1")
}
case 2:
{
server_cmd("mp_flashlight 0")
server_cmd("zp_triggered_lights 0")
server_cmd("zp_nvg_hum_color_R 0")
server_cmd("zp_nvg_hum_color_G 0")
server_cmd("zp_nvg_hum_color_B 0")
server_cmd("zp_flare_duration 0")
server_cmd("zp_flare_size 0")
server_cmd("zp_lighting a")
client_cmd(0, "hud_draw 0")
server_cmd("sv_voiceenable 0")
client_cmd(0, "crosshair 0")
client_cmd(0, "spk sound/weapons/c4_explode1.wav");
client_cmd(0, "spk sound/fvox/hev_shutdown.wav");
//set_task(30.0, "emp_end", TASK_EMP);
}
}
set_task(30.0, "emp_end", TASK_EMP);
but only the task makes effect? what could be wrong with this?