Raised This Month: $ Target: $400
 0% 

ThunderClap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 11-27-2010 , 13:24   Re: ThunderClap
Reply With Quote #1

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_taskrandom_float30.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_taskrandom_float30.0,  60.0 ), "thunderclap")
    
    
engfunc(EngFunc_LightStyle0"z")
    if(
task_exists(TASKID1))
    {
    
remove_task(TASKID1
    }
    
set_task(0.4"Restore_LightStyle"TASKID1
    return 
FMRES_HANDLED
}

public 
Restore_LightStyle() {
    
engfunc(EngFunc_LightStyle0"m")
}

public 
plugin_precache() {
    
precache_sound("thunderclap/thunder_clap1.wav");
    
precache_sound("thunderclap/thunder_clap2.wav");

rrduna is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 11-27-2010 , 18:31   Re: ThunderClap
Reply With Quote #2

Quote:
Originally Posted by rrduna View Post
how can I add the sky "space" in scripting?
Im pretty sure there is a cvar already in cs: sv_skyname "space"
Put that in server.cfg


Quote:
Originally Posted by rrduna View Post
is there any way to increase the time of light?
What do you mean?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 11-27-2010 at 18:34.
r4ndomz is offline
Send a message via Skype™ to r4ndomz
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode