AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Light. (https://forums.alliedmods.net/showthread.php?t=101582)

Mr.Noobie 08-25-2009 06:45

Light.
 
How can i make the sky to totaly darkness without using zombie plague ?

Just like in zombie plague the command "zp_lighting a"

hleV 08-25-2009 06:50

Re: Light.
 
Code:
#include <amxmodx> #include <engine>   public plugin_init()         register_plugin("Total Darkness", "1.0", "hleV");   public client_putinserver()         set_lights("a");
There might be better way than put in server.

ot_207 08-25-2009 07:40

Re: Light.
 
That resets the light always when clients connect. It is not needed.

PHP Code:

#include <amxmodx>
#include <engine>

public plugin_init()
{
        
register_plugin("Total Darkness""1.0""hleV");
        
set_lights("a");


To make with a cvar you need to make it with a looped task.

hleV 08-25-2009 11:16

Re: Light.
 
Quote:

Originally Posted by ot_207 (Post 912291)
That resets the light always when clients connect. It is not needed.

PHP Code:

#include <amxmodx>
#include <engine>
 
public plugin_init()
{
        
register_plugin("Total Darkness""1.0""hleV");
        
set_lights("a");


To make with a cvar you need to make it with a looped task.

Sometimes light resets for newly connecting players, that's why I'm doing it in putinserver.


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

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