Raised This Month: $ Target: $400
 0% 

Runtime Error (assistance needed)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
makiza
BANNED
Join Date: Mar 2009
Old 03-12-2011 , 17:08   Re: Runtime Error (assistance needed)
Reply With Quote #6

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?

Last edited by makiza; 03-12-2011 at 17:15.
makiza is offline
 



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 14:36.


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