AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP 5.0] Automatic Light Changer (https://forums.alliedmods.net/showthread.php?t=186419)

Y060N 05-30-2012 00:54

[ZP 5.0] Automatic Light Changer
 
1 Attachment(s)
http://i.imgur.com/avuCL.png




Description:
This plugin will give a bit of a twist to the game play on your server. Let the lighting go from semi-dark to pitch black throughout the map. Players are sure to love this!

Main features:
- Add a twist to your server
- Easily enable/disable the plugin

Cvars:
zp_autolight_enable 0/1 - set to 0 to disable, 1 to enable - simple!

Requirements:
- AMXmodX
- ZP 5.0

Install:
- Click "Get Source" (or compile locally)
- Put the .amxx file inside /addons/amxmodx/plugins
- Write "zp50_lighting_autochange.amxx" into your plugins-zp50_ammopacks.ini file

KillerMasa 05-30-2012 06:41

Re: [ZP 5.0] Automatic Light Changer
 
GJ, i go to test this.

Miljan9 06-01-2012 03:32

Re: [ZP 5.0] Automatic Light Changer
 
For zp4.3 ?

jc980 06-01-2012 05:32

Re: [ZP 5.0] Automatic Light Changer
 
Quote:

Originally Posted by Miljan9 (Post 1720552)
For zp4.3 ?

Did you read the title? ZP5.0

XINLEI 06-01-2012 16:49

Re: [ZP 5.0] Automatic Light Changer
 
Not so cool as i expected (already have this, but on seconds).

It'll be cool if the lighting is based on the winsteaks. for example:

Humans win == Dark lighting.
Zombies win == Bright lighting.

Y060N 06-01-2012 23:23

Re: [ZP 5.0] Automatic Light Changer
 
Quote:

Let the lighting go from semi-dark to pitch black throughout the map.
I didn't false advertise anything. I don't plan to release many more plugins or anything, I thought the 5 I released would get a bit more light of day, but it seems nobody wants to use them.

DeMNiX 06-02-2012 03:15

Re: [ZP 5.0] Automatic Light Changer
 
GJ. Thanks

naSTR 06-04-2012 06:53

Re: [ZP 5.0] Automatic Light Changer
 
Can someone make it in zp4.3???

H.RED.ZONE 06-04-2012 09:45

Re: [ZP 5.0] Automatic Light Changer
 
Quote:

Originally Posted by naSTR (Post 1722541)
Can someone make it in zp4.3???

Learn its simple.
PHP Code:

#include <amxmodx>
#include <colorchat>

#define PLUGIN "[ZP] Automatic light change"
#define VERSION "1.0"
#define AUTHOR "lambda"

new counter
new const num_to_flag[4][] = { "d","c","b","a" }

new 
cvar_enabled

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
counter = -20 random_num(010)
    
    
cvar_enabled register_cvar("zp_autolight_enable""1")
}

public 
event_round_start()
{
    
counter++

    if (
get_pcvar_num(cvar_enabled))
    {
        if(
counter sizeof(num_to_flag) && counter >= )
        {
            
set_cvar_string("zp_lighting"num_to_flag[counter])
            
            switch(
counter)
            {
                case 
0:
                    
ColorChat(0TEAM_COLOR"^4[ZP]^1 It's starting to get dark...")
                case 
1:
                    
ColorChat(0TEAM_COLOR"^4[ZP]^1 It's better to get inside...")
                case 
2:
                    
ColorChat(0TEAM_COLOR"^4[ZP]^1 Beware of the dark...")
                case 
3:        
                    
ColorChat(0TEAM_COLOR"^4[ZP]^1 It's midnight.")
            }

        }
    }



oskarekziom 06-21-2012 14:58

Re: [ZP 5.0] Automatic Light Changer
 
great plugin thanks for the share http://online.freeware.info.pl/royal-story.html :)!


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

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