set_lights in cvar
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:
|
Re: set_lights in cvar
You need to read the cvar at some point and use it when you call set_lights(). When do you want this action to occur?
|
Re: set_lights in cvar
I believe that this is what you want:
PHP Code:
|
Re: set_lights in cvar
Yes, that is, what i want.
PHP Code:
Thank you for help! :) |
Re: set_lights in cvar
Well because it was a letter it needs to have a string, everything you want to know is here.
|
Re: set_lights in cvar
Quote:
|
Re: set_lights in cvar
Quote:
|
Re: set_lights in cvar
Which amxx version are you using ?
If you're using amxx version 183 or latter which most recommended vers is the latest you can hook cvar change and change the lights instantly rather than waiting for round HLTV event to be called. |
Re: set_lights in cvar
Quote:
|
Re: set_lights in cvar
Ye, it's 1.8.2, the latest.
Quote:
PHP Code:
|
All times are GMT -4. The time now is 03:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.