Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP 5.0] Automatic Light Changer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 05-30-2012 , 00:54   [ZP 5.0] Automatic Light Changer
Reply With Quote #1






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
Attached Files
File Type: sma Get Plugin or Get Source (zp50_lighting_autochange.sma - 2314 views - 1.1 KB)

Last edited by Y060N; 05-30-2012 at 00:57.
Y060N is offline
KillerMasa
Senior Member
Join Date: May 2012
Old 05-30-2012 , 06:41   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #2

GJ, i go to test this.
KillerMasa is offline
Miljan9
Member
Join Date: Dec 2011
Location: Belgrade / Serbia
Old 06-01-2012 , 03:32   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #3

For zp4.3 ?
__________________
Hi I'm from Serbian and i don't speak English good.
Miljan9 is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-01-2012 , 05:32   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #4

Quote:
Originally Posted by Miljan9 View Post
For zp4.3 ?
Did you read the title? ZP5.0
__________________
jc980 is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 06-01-2012 , 16:49   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #5

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.
XINLEI is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 06-01-2012 , 23:23   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #6

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.

Last edited by Y060N; 06-01-2012 at 23:24.
Y060N is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 06-02-2012 , 03:15   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #7

GJ. Thanks
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-04-2012 , 06:53   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #8

Can someone make it in zp4.3???
__________________
naSTR is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 06-04-2012 , 09:45   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #9

Quote:
Originally Posted by naSTR View Post
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.")
            }

        }
    }

__________________
H.RED.ZONE is offline
oskarekziom
Junior Member
Join Date: May 2011
Old 06-21-2012 , 14:58   Re: [ZP 5.0] Automatic Light Changer
Reply With Quote #10

great plugin thanks for the share http://online.freeware.info.pl/royal-story.html !

Last edited by oskarekziom; 05-10-2019 at 07:56.
oskarekziom 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 12:10.


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