Raised This Month: $32 Target: $400
 8% 

Subplugin Submission [ZP] Happy hour


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
capostrike93
Veteran Member
Join Date: Feb 2009
Location: adios y??
Old 02-07-2010 , 05:24   [ZP] Happy hour
Reply With Quote #1

Hello. I'm here to introduce a new plugin I've made for zombie plague. Its purpose is to increase ammo pack gain at some points in time (happy hours). It works in all zombie plague versions. You just have to edit this line:

// Uncomment this line if you use the zombie plague 4.2 or an older
//#define ZP_42_OR_OLDER

Also, note that the plugin must be declared before zp to work in "plugins.ini"

Quote:
; Main plugin
happyhour.amxx
zombie_plague40.amxx
; Default zombie classes
zp_zclasses40.amxx
; Add sub-plugins, custom zombie classes, and extra items here

ETC...


Credits: speed, for this good idea


CVARS

Quote:
zp_happyinit 2 // Hour at which the happy hours start, example 2 = 2 am and 14 = 2 pm.
zp_happyend 7 // Hour at which the happy hours end, example 2 = 2 am and 14 = 2 pm.
zp_happyhour 1 // Activate??
zp_happymultipler 2 // Multipler of the amount, example amount init is +1 pack, and cvar is 2 : result +2 packs for this player
Quote:
When the map changes, or in a restart, it checks the new cvars and time.
zp_happyinit 2 // Hour at which the happy hours start, example 2 = 2 am and 14 = 2 pm.
zp_happyend 7 // Hour at which the happy hours end, example 2 = 2 am and 14 = 2 pm.
zp_happyhour 1 // Activate??



+karma, and admin for me (?)
Attached Files
File Type: sma Get Plugin or Get Source (happyhour.sma - 5288 views - 3.7 KB)
__________________

Last edited by capostrike93; 02-09-2010 at 23:03. Reason: When the map changes, or in a restart, it checks the cvars and time
capostrike93 is offline
Ciio
Veteran Member
Join Date: Oct 2009
Location: Arica, Chile
Old 02-07-2010 , 07:49   Re: [ZP] Happy hour
Reply With Quote #2

Nice !, good idea and job
__________________
Ciio is offline
Send a message via MSN to Ciio
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-07-2010 , 08:12   Re: [ZP] Happy hour
Reply With Quote #3

I like the idea, but 'Happy Hour', lol

Quote:
+karma, and admin for me (?)
Karma is gone
And do you want admin on each server where this is installed? Lol
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
capostrike93
Veteran Member
Join Date: Feb 2009
Location: adios y??
Old 02-07-2010 , 08:21   Re: [ZP] Happy hour
Reply With Quote #4

-.-

(?) = sarcasm
__________________
capostrike93 is offline
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 02-07-2010 , 10:03   Re: [ZP] Happy hour
Reply With Quote #5

Quote:
Originally Posted by capostrike93 View Post
-.-

(?) = sarcasm
Fixed
Quote:
Originally Posted by capostrike93 View Post
-.-

(?) == sarcasm
gw!, xD!
MouseSplash! is offline
TucanN#
Veteran Member
Join Date: May 2009
Location: Argentina, Mendoza
Old 02-07-2010 , 10:31   Re: [ZP] Happy hour
Reply With Quote #6

happy time!
TucanN# is offline
Send a message via MSN to TucanN#
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-07-2010 , 12:12   Re: [ZP] Happy hour
Reply With Quote #7

If you don't know, all the zombie plague sub-plugins in this section have been moved to the zombie plague sub-forum for "X" reason.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 02-07-2010 , 13:53   Re: [ZP] Happy hour
Reply With Quote #8

cool, ty for sharing
__________________

sunx is offline
Toastt
BANNED
Join Date: Nov 2009
Old 02-07-2010 , 14:38   Re: [ZP] Happy hour
Reply With Quote #9

yummmy, happy hour
Toastt is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-07-2010 , 15:12   Re: [ZP] Happy hour
Reply With Quote #10

You have to say that cvar changes (except multiplier cvar) only work at mapchange

PHP Code:
public fw_PlayerSpawn_post(id)
{
    if(
message[0]) client_print(id,print_chatmessage)

-->

PHP Code:
public fw_PlayerSpawn_post(id)
{
    if(
g_happyhourclient_print(id,print_chatmessage)

__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Reply


Thread Tools
Display Modes

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 07:21.


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