AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Happy hour (https://forums.alliedmods.net/showthread.php?t=118036)

capostrike93 02-07-2010 05:24

[ZP] Happy hour
 
1 Attachment(s)
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...
:wink:

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??

:wink:


+karma, and admin for me (?)

Ciio 02-07-2010 07:49

Re: [ZP] Happy hour
 
Nice !, good idea and job

crazyeffect 02-07-2010 08:12

Re: [ZP] Happy hour
 
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

capostrike93 02-07-2010 08:21

Re: [ZP] Happy hour
 
-.-

(?) = sarcasm

MouseSplash! 02-07-2010 10:03

Re: [ZP] Happy hour
 
Quote:

Originally Posted by capostrike93 (Post 1081470)
-.-

(?) = sarcasm

Fixed
Quote:

Originally Posted by capostrike93 (Post 1081470)
-.-

(?) == sarcasm

gw!, xD!

TucanN# 02-07-2010 10:31

Re: [ZP] Happy hour
 
happy time!

meTaLiCroSS 02-07-2010 12:12

Re: [ZP] Happy hour
 
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.

sunx 02-07-2010 13:53

Re: [ZP] Happy hour
 
cool, ty for sharing :)

Toastt 02-07-2010 14:38

Re: [ZP] Happy hour
 
yummmy, happy hour :D

Starsailor 02-07-2010 15:12

Re: [ZP] Happy hour
 
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)




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

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