Raised This Month: $66 Target: $400
 16% 

Lights Management


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Arkshine (91)
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-05-2010 , 00:44   Lights Management
Reply With Quote #1

.:= Lights Management =:.

Why this plugin?
I hate those maps with lights switch that, when used, cause lag and screen freeze.
Description
With this plugin you can set permissions over light switch buttons.
Can detect lights entities linked directly with a func_button or though multi_manager entity.
Cvars
lightsmode (default: 3)
0: Allow everyone to switch lights
1: Only CT team
2: Only TT team
3: Nobody can use switch lights
lightsadmin (default: 1)
0: No admin override
1: Admin allow override
lightsother (default: 1)
0: Non-player entities allowed
1: Non-player entities disallowed

Changelog
Code:
v0.2
* Added non-player entities control
* Added admin permission override
* Fixed all buttons affected issue
 
v0.1
* First release
Attached Files
File Type: sma Get Plugin or Get Source (lightsmanagement.sma - 1253 views - 3.1 KB)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 04-05-2010 at 09:30.
joropito is offline
Send a message via MSN to joropito
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-05-2010 , 01:05   Re: Lights Management
Reply With Quote #2

Interesting . . . I've never seen any lag because of lights switching on and off. I guess it could be a client video card issue if the video card is not good.
__________________
fysiks is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-05-2010 , 02:11   Re: Lights Management
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
I guess it could be a client video card issue if the video card is not good.
Yes, that's right.
KadiR is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-05-2010 , 05:55   Re: Lights Management
Reply With Quote #4

Admin only/ability could be usefull too.
__________________
- tired and retired -
ConnorMcLeod is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-05-2010 , 06:03   Re: Lights Management
Reply With Quote #5

Nice.

And good idea Connor
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 04-05-2010 , 06:35   Re: Lights Management
Reply With Quote #6

Quote:
Originally Posted by crazyeffect View Post
Nice.I think this needs ML

And good idea Connor
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-05-2010 , 07:35   Re: Lights Management
Reply With Quote #7

The dictionary common.txt can be used with the following line:
Quote:
NO_ACC_COM = You have no access to that command
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-05-2010 , 08:23   Re: Lights Management
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
Admin only/ability could be usefull too.
I leave i out to let someone ask for it

Quote:
Originally Posted by fR4gn0tiX! View Post
I agree

Quote:
Originally Posted by crazyeffect View Post
The dictionary common.txt can be used with the following line:
You! Always you
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-05-2010 , 08:58   Re: Lights Management
Reply With Quote #9

Quote:
Originally Posted by joropito View Post
I leave i out to let someone ask for it
P
I won't use your plugin but I want this feature.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-05-2010 , 09:34   Re: Lights Management
Reply With Quote #10

UPDATED, check first post.

Quote:
Originally Posted by Arkshine View Post
I won't use your plugin but I want this feature.
Yeah, for me it's just a way to show how anyone can manage relations between entities in map and then play with that.
This is a similar code to the one I sent to wrecked_ to get all cells buttons for jail maps and I like to share it.

Maybe this should go to code/snippets but as it is a working plugin I decided to submit.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 04-05-2010 at 09:36.
joropito is offline
Send a message via MSN to joropito
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 23:13.


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