Raised This Month: $32 Target: $400
 8% 

[Brightness] Day/Light


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sanimare
Senior Member
Join Date: Sep 2010
Old 05-16-2020 , 15:03   [Brightness] Day/Light
Reply With Quote #1

What about changing brigthness for client only who want's to change it?
Like /light or /brightness and then choose level from menu by pressing number 1 for lighter and number 2 for darker.
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> public plugin_init() { register_concmd("amx_svetlost","svetlo",ADMIN_RCON,"broj 1-20") } public svetlo(id,level,cid) {     if (!cmd_access(id,level,cid,2))         return PLUGIN_CONTINUE         new arg[3]     read_argv(1,arg,2)     new inum = str_to_num(arg)         if(inum < 0 || inum > 26 ) return PLUGIN_HANDLED;     if(inum == 0) set_lights("#OFF");         else set_light( inum ) return PLUGIN_HANDLED } public set_light ( level ){     new svjetlo[2]     new clevel = (1<<level)     get_flags ( clevel, svjetlo, 1 )     set_lights(svjetlo) return PLUGIN_HANDLED; }
sanimare is offline
thEsp
BANNED
Join Date: Aug 2017
Old 05-16-2020 , 19:30   Re: [Brightness] Day/Light
Reply With Quote #2

Clients can already change their brightness by simply going to settings then display.
thEsp 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 15:29.


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