Raised This Month: $51 Target: $400
 12% 

EngFunc_LightStyle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-27-2011 , 17:22   EngFunc_LightStyle
Reply With Quote #1

engfunc(EngFunc_LightStyle, 0, "f")

: I am setting an illumination level for the 1 round.How to restore default map illumination level back ?

Last edited by Bos93; 12-27-2011 at 17:31.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
avril-lavigne
Banned
Join Date: Apr 2009
Old 12-27-2011 , 23:53   Re: EngFunc_LightStyle
Reply With Quote #2

u can just use set_lights
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-28-2011 , 06:52   Re: EngFunc_LightStyle
Reply With Quote #3

Quote:
Originally Posted by avril-lavigne View Post
u can just use set_lights
It's the same thing.


@OP:
IIRC light level "m" is the default one.
So just use engfunc(EngFunc_LightStyle, 0, "m");
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-28-2011 , 08:38   Re: EngFunc_LightStyle
Reply With Quote #4

drekes,thank you
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2011 , 12:29   Re: EngFunc_LightStyle
Reply With Quote #5

EngFunc_SetLights is not enough to fully convert set_lights.
Connecting players could have blinking lights.
Players arms could be wrongly colored.
Also, "m" is not the default light on every maps.

That's why it's really better to use set_lights
To restore original light, just pass "#OFF" as arg.
http://www.amxmodx.org/funcwiki.php?go=func&id=371

Little tip : to set something like FULLBRIGHT you can pass "A"
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-28-2011 at 12:30.
ConnorMcLeod is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 12-28-2011 , 12:57   Re: EngFunc_LightStyle
Reply With Quote #6

ConnorMcLeod, Thank you very much
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
artist
Member
Join Date: Nov 2013
Old 04-03-2014 , 11:19   Re: EngFunc_LightStyle
Reply With Quote #7

Why blink?
As if set two letters ...

Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
	set_light_hour()
}
public set_light_hour()
{
	new hour[3]; get_time("%H", hour, charsmax(hour))

	switch(str_to_num(hour))
	{
		case 0: engfunc(EngFunc_LightStyle, 0, "a")
		case 1: engfunc(EngFunc_LightStyle, 0, "b")
		case 2: engfunc(EngFunc_LightStyle, 0, "c")
		case 3: engfunc(EngFunc_LightStyle, 0, "d")
		case 4: engfunc(EngFunc_LightStyle, 0, "e")
		case 5: engfunc(EngFunc_LightStyle, 0, "f")
		case 6: engfunc(EngFunc_LightStyle, 0, "h")
		case 7: engfunc(EngFunc_LightStyle, 0, "k")
		case 8: engfunc(EngFunc_LightStyle, 0, "n")
		case 9: engfunc(EngFunc_LightStyle, 0, "w")
		case 10: engfunc(EngFunc_LightStyle, 0, "x")
		case 11: engfunc(EngFunc_LightStyle, 0, "y")
		case 12: engfunc(EngFunc_LightStyle, 0, "z")
		case 13: engfunc(EngFunc_LightStyle, 0, "y")
		case 14: engfunc(EngFunc_LightStyle, 0, "x")
		case 15: engfunc(EngFunc_LightStyle, 0, "w")
		case 16: engfunc(EngFunc_LightStyle, 0, "u")
		case 17: engfunc(EngFunc_LightStyle, 0, "p")
		case 18: engfunc(EngFunc_LightStyle, 0, "n")
		case 19: engfunc(EngFunc_LightStyle, 0, "k")
		case 20: engfunc(EngFunc_LightStyle, 0, "j")
		case 21: engfunc(EngFunc_LightStyle, 0, "h")
		case 22: engfunc(EngFunc_LightStyle, 0, "d")
		case 23: engfunc(EngFunc_LightStyle, 0, "b")
	}
}

Last edited by artist; 04-03-2014 at 11:22.
artist is offline
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-03-2014 , 21:41   Re: EngFunc_LightStyle
Reply With Quote #8

Quote:
Originally Posted by artist View Post
Why blink?
As if set two letters ...

Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
	set_light_hour()
}
public set_light_hour()
{
	new hour[3]; get_time("%H", hour, charsmax(hour))

	switch(str_to_num(hour))
	{
		case 0: engfunc(EngFunc_LightStyle, 0, "a")
		case 1: engfunc(EngFunc_LightStyle, 0, "b")
		case 2: engfunc(EngFunc_LightStyle, 0, "c")
		case 3: engfunc(EngFunc_LightStyle, 0, "d")
		case 4: engfunc(EngFunc_LightStyle, 0, "e")
		case 5: engfunc(EngFunc_LightStyle, 0, "f")
		case 6: engfunc(EngFunc_LightStyle, 0, "h")
		case 7: engfunc(EngFunc_LightStyle, 0, "k")
		case 8: engfunc(EngFunc_LightStyle, 0, "n")
		case 9: engfunc(EngFunc_LightStyle, 0, "w")
		case 10: engfunc(EngFunc_LightStyle, 0, "x")
		case 11: engfunc(EngFunc_LightStyle, 0, "y")
		case 12: engfunc(EngFunc_LightStyle, 0, "z")
		case 13: engfunc(EngFunc_LightStyle, 0, "y")
		case 14: engfunc(EngFunc_LightStyle, 0, "x")
		case 15: engfunc(EngFunc_LightStyle, 0, "w")
		case 16: engfunc(EngFunc_LightStyle, 0, "u")
		case 17: engfunc(EngFunc_LightStyle, 0, "p")
		case 18: engfunc(EngFunc_LightStyle, 0, "n")
		case 19: engfunc(EngFunc_LightStyle, 0, "k")
		case 20: engfunc(EngFunc_LightStyle, 0, "j")
		case 21: engfunc(EngFunc_LightStyle, 0, "h")
		case 22: engfunc(EngFunc_LightStyle, 0, "d")
		case 23: engfunc(EngFunc_LightStyle, 0, "b")
	}
}
This thread is from 2011.. I don't think he is still looking for a solution..
__________________
PM me for private work.


Buckshot is offline
Send a message via Skype™ to Buckshot
artist
Member
Join Date: Nov 2013
Old 04-05-2014 , 12:55   Re: EngFunc_LightStyle
Reply With Quote #9

I asked for yourself ))
artist is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 04-05-2014 , 13:55   Re: EngFunc_LightStyle
Reply With Quote #10

для этого есть amx-x.ru где ты и сидишь лол
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne 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 22:49.


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