Raised This Month: $ Target: $400
 0% 

set_lights


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FloorenTIbraimi
Member
Join Date: Jul 2014
Location: Macedonia
Old 10-25-2014 , 08:49   set_lights
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <engine>


new const PLUGIN[] = "Auto-Lights"
new const VERSION[] = "0.1"
new const AUTHOR[] = "Edi"

new Float:g_CheckTime 60.0  // Aici setam timpul in care pluginul verifica ora si schimba luminile (default 1 minut - 60s)
new h

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_taskg_CheckTime"SetLights" )
}

public 
SetLights(){
    
    
timeh_)     
    
    if ( 
== 00 ){
    
            
set_lights"d" )
    
    }
    
    if ( 
== 06 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 07 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 08 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 09 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 10 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 12 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 17 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 18 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 19 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 20 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 21 ){
        
            
set_lights"d" )
        
    }
    
    if ( 
== 22 ){
        
            
set_lights"d" )
        
    }

I have this Plugin but i want to do like this amx_cvar set_lights "d" allways "d"
Pls Help
FloorenTIbraimi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-25-2014 , 11:28   Re: set_lights
Reply With Quote #2

What??
__________________
fysiks is offline
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 10-25-2014 , 11:45   Re: set_lights
Reply With Quote #3

PHP Code:
public SetLights(){ 
     
    
set_lights"d" 
     
    } 
FromTheFuture is offline
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 17:40.


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