how can I add the sky "space" in scripting?
is there any way to increase the time of light?
the time of light emitted is minimal, very little, one second I think.
help me please!
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new const PLUGIN [] = "Thunderclap"
new const VERSION [] = "1.0"
new const AUTHOR [] = "Duna"
#define TASKID1 1324687358
new thunder_sounds[][] =
{
"thunderclap/thunder_clap1",
"thunderclap/thunder_clap2"
}
public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)
set_task( random_float( 30.0, 60.0 ), "thunderclap")
return PLUGIN_CONTINUE;
}
public client_putinserver(id){
if(is_user_bot(id))
return
if(!task_exists(TASKID1))
{
Restore_LightStyle()
}
}
public thunderclap() {
client_cmd(0,"spk %s",thunder_sounds[random(sizeof thunder_sounds)]);
set_task( random_float( 30.0, 60.0 ), "thunderclap")
engfunc(EngFunc_LightStyle, 0, "z")
if(task_exists(TASKID1))
{
remove_task(TASKID1)
}
set_task(0.4, "Restore_LightStyle", TASKID1)
return FMRES_HANDLED
}
public Restore_LightStyle() {
engfunc(EngFunc_LightStyle, 0, "m")
}
public plugin_precache() {
precache_sound("thunderclap/thunder_clap1.wav");
precache_sound("thunderclap/thunder_clap2.wav");
}