Idézet:
Megjegyzem: lámpát slender man nem tud kapcsolni :S

Ezt átkell neked írni. (Nem nehéz)
Viszont: Ennek elvileg mennie kell.
UI:
"_",
"a",//infection
"0",//nemessis
"c",//survivor
"d",//swarm
"e",//multi
"f"//plague
Ezek a fények cuccai. nem tudom megmondani melyik a fényes.
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "Fényesség/sötétség"
#define VERSION "1.0"
#define AUTHOR "Arwel"
new const LIGHT[7][2]=
{
"_",
"a",//infection
"0",//nemessis
"c",//survivor
"d",//swarm
"e",//multi
"f"//plague
}
new szCvarLightStyle[1]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "EventRoundStart", "1", "1=0", "2=0")
set_task(1.0, "GetCvar")
}
public GetCvar()
get_cvar_string("zp_lighting", szCvarLightStyle, charsmax(szCvarLightStyle))
public EventRoundStart()
{
set_cvar_string("zp_lighting",szCvarLightStyle)
engfunc(EngFunc_LightStyle, 0, szCvarLightStyle)
}
public zp_round_started(gamemode, id)
{
set_cvar_string("zp_lighting", LIGHT[gamemode])
engfunc(EngFunc_LightStyle, 0, LIGHT[gamemode])
}