Raised This Month: $ Target: $400
 0% 

[REQ] How to turn the lighting off/on ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Joce93
Senior Member
Join Date: Feb 2016
Old 04-13-2016 , 17:55   [REQ] How to turn the lighting off/on ?
Reply With Quote #1

Hello guys,

I'm searching a plugin to turn off/on the lighting of the map while playing. I'm playing on a HL1 mod (Sven Co-op).

Here for an example:

https://www.youtube.com/watch?v=VGmFsJj5mac#t=2m03s

In this map, it is supposed to have the lighting ON but the admin turns it off to scare the players (Yes yes i'm sure about that).

Can anyone help me ?

Last edited by Joce93; 04-14-2016 at 10:46.
Joce93 is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-13-2016 , 18:04   Re: [REQ] How to turn the lighting off/on ?
Reply With Quote #2

by plugin set_lights from engine i think could work on sven coop too
__________________
Vitamin-C was here
counter1strike6 is offline
Joce93
Senior Member
Join Date: Feb 2016
Old 04-13-2016 , 18:20   Re: [REQ] How to turn the lighting off/on ?
Reply With Quote #3

Quote:
Originally Posted by counter1strike6 View Post
by plugin set_lights from engine i think could work on sven coop too
Do you have any link or script for this ?
Joce93 is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-14-2016 , 03:56   Re: [REQ] How to turn the lighting off/on ?
Reply With Quote #4

try this set map lights from a to z like:
amx_map_light a


PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    
register_plugin("Map Light test""1.0""Vitamin-C"
    
register_clcmd("amx_map_light""lCmd")
}


public 
lCmd()
{
    new 
args[5]
    
read_argv(1args4)
    
    
remove_quotes(args)
    
    
    
set_lights(args)


__________________
Vitamin-C was here
counter1strike6 is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-14-2016 , 04:37   Re: [REQ] How to turn the lighting off/on ?
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?t=106389
Krtola is offline
Send a message via Skype™ to Krtola
Joce93
Senior Member
Join Date: Feb 2016
Old 04-14-2016 , 14:26   Re: [REQ] How to turn the lighting off/on ?
Reply With Quote #6

Thanks guys. I used this one on my server:

https://forums.alliedmods.net/showth...=32508?p=32508

Work great !
Joce93 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 18:56.


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