Code:
#include <amxmodx>
#include <fun>
public plugin_init() {
register_cvar("amx_zbot_dark","1")
public dark() {
if (get_cvar_num("amx_zbot_dark"))
{
set_hudmessage(255,255,255,-1.0,0.35,1,6.0,6.0,0.1,0.1,4);
show_hudmessage(0,"Dark Mode has been ENABLED!");
set_lights("c");
}
else if(get_cvar_num("amx_zbot_dark"))
{
set_hudmessage(255,255,255,-1.0,0.35,1,6.0,6.0,0.1,0.1,4);
show_hudmessage(0,"Dark Mode has been DISABLED!");
set_lights("#OFF")
}
return PLUGIN_HANDLED
}
thats just a bit of my mod i'm working on and i compiled it but i get 2 errors to do wiht the "set_lights" parts
btw, i'm trying to make one team have night vision goggles at the start of the game and i tried to use give_item but soon found out that there was no command for it...
__________________