Hey.
I'm beginner in scripting.
I want to create cvar, which will change the light.
Example: server_light "b"
Then set_lights is set to "b".
But doesn't work.
PHP Code:
#include <amxmodx>
#include <engine>
#define PLUGIN "serverLight"
#define VERSION "0.1"
#define AUTHOR "chicken"
new lights[2]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("server_light", lights)
}
public setServerLights() {
set_lights(lights)
}
Any help? Thank you!