Raised This Month: $ Target: $400
 0% 

Light.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-25-2009 , 06:45   Light.
Reply With Quote #1

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

Just like in zombie plague the command "zp_lighting a"
Mr.Noobie is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-25-2009 , 06:50   Re: Light.
Reply With Quote #2

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.
__________________
hleV is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-25-2009 , 07:40   Re: Light.
Reply With Quote #3

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.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-25-2009 , 11:16   Re: Light.
Reply With Quote #4

Quote:
Originally Posted by ot_207 View Post
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.
__________________
hleV 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:15.


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