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(PLUGIN, VERSION, AUTHOR)
set_task( g_CheckTime, "SetLights" )
}
public SetLights(){
time( h, _, _ )
if ( h == 00 ){
set_lights( "d" )
}
if ( h == 06 ){
set_lights( "d" )
}
if ( h == 07 ){
set_lights( "d" )
}
if ( h == 08 ){
set_lights( "d" )
}
if ( h == 09 ){
set_lights( "d" )
}
if ( h == 10 ){
set_lights( "d" )
}
if ( h == 12 ){
set_lights( "d" )
}
if ( h == 17 ){
set_lights( "d" )
}
if ( h == 18 ){
set_lights( "d" )
}
if ( h == 19 ){
set_lights( "d" )
}
if ( h == 20 ){
set_lights( "d" )
}
if ( h == 21 ){
set_lights( "d" )
}
if ( h == 22 ){
set_lights( "d" )
}
}
I have this Plugin but i want to do like this amx_cvar set_lights "d" allways "d"
Pls Help