Raised This Month: $1944 Target: $400
 486% 

Solved set_lights in cvar


Post New Thread Reply   
 
Thread Tools Display Modes
chickez
Junior Member
Join Date: Jun 2020
Location: Slovakia
Old 07-02-2020 , 06:09   Re: set_lights in cvar
Reply With Quote #21

Quote:
Originally Posted by fysiks View Post
Answering questions that were asked of you is very helpful so you should consider doing so. Often this will save a lot of time and prevent people from wasting their time doing things that you're not actually requesting.
Sorry, my fault. I skipped that, don't know how .

Quote:
Originally Posted by fysiks View Post
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?
The best way is, when cvar is changed, then call the func. As you see, I did it with set_task, but I don't know, if set_task will slow plugin or bugging server.
Via orpheu, idk the natives, so i will read it.

Last edited by chickez; 07-02-2020 at 06:12. Reason: nvm
chickez is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-02-2020 , 06:44   Re: set_lights in cvar
Reply With Quote #22

set_task will not bug or slow the server.
__________________
HamletEagle is offline
chickez
Junior Member
Join Date: Jun 2020
Location: Slovakia
Old 07-02-2020 , 08:15   Re: set_lights in cvar
Reply With Quote #23

Quote:
Originally Posted by HamletEagle View Post
set_task will not bug or slow the server.
Thank you.

Thanks all to help and explanation. I have all what I want to know.
chickez is offline
Reply


Thread Tools
Display Modes

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:48.


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