AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cs_estate lights help (https://forums.alliedmods.net/showthread.php?t=215799)

oxygen935 05-12-2013 11:22

cs_estate lights help
 
Hey guys,
I'm wondering if exist any possible way to turn lights down inside the house in cs_estate??
With set_lights it set the lights out the house no inside...
They exist 2 button(1 behind the house, it's a big box, and one below the stairs)
How can i automatically put those buttons so the players needn't to push them?

Please help me...

Thanks in advance,
Oxygen

Arkshine 05-12-2013 12:13

Re: cs_estate lights help
 
Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> public plugin_precache() {     register_plugin( "Light Start Off", "1.0", "Arkshine" );     RegisterHam( Ham_Spawn, "light", "OnLightSpawn" ); } public OnLightSpawn( const light ) {     if( pev( light, pev_targetname ) )     {         set_pev( light, pev_spawnflags, SF_LIGHT_START_OFF );     } }


It will turn off all toggable lights.

oxygen935 05-12-2013 12:24

Re: cs_estate lights help
 
i think that this turn all togglable lights down on round start/player spawn. Right?
Any idea on how to do it with command??

ConnorMcLeod 05-12-2013 12:26

Re: cs_estate lights help
 
Quote:

Originally Posted by oxygen935 (Post 1950623)
i think that this turn all togglable lights down on round start/player spawn. Right?
Any idea on how to do it with command??

And do you have any idea on how to properly post a request so all info is written in first instance ?

oxygen935 05-12-2013 12:28

Re: cs_estate lights help
 
Quote:

Originally Posted by ConnorMcLeod (Post 1950626)
And do you have any idea on how to properly post a request so all info is written in first instance ?

i actually forgot this.
I'm Sorry.

Arkshine 05-12-2013 12:28

Re: cs_estate lights help
 
Just one time at map starts.

Now you ask a command. Is that hard to ask AT FIRST what you want EXACTLY ?

So, here the question : WHAT DO YOU WANT EXACTLY ?

oxygen935 05-12-2013 12:34

Re: cs_estate lights help
 
i want to turn all lights down with a command like /lights...

Arkshine 05-12-2013 12:43

Re: cs_estate lights help
 
"like" ? What type of command ? Access level ? What command name exactly ? You think people are clairvoyant or what ? You give no details.

I guess you don't want the plugin, you don't answer the question. Thanks for wasting people's time. Skipping thread.

oxygen935 05-12-2013 12:46

Re: cs_estate lights help
 
the like goes to the command. I mean i don't have any problem with what command you put on the plugin.
The name of the command doesn't matter.

Again to make myself clear,
can u make to turning all the toggleable light down with /lights command?

I guess it easy to understand...


All times are GMT -4. The time now is 16:24.

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