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

Happy Hour


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 01-29-2016 , 10:03   Happy Hour
Reply With Quote #1

Hi , i need a happy Hour for score .
Ex : From 11 PM to 6 AM Happy hour its makes your score x2
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-31-2016 , 03:19   Re: Happy Hour
Reply With Quote #2

look in the zombie plague section, there is such plugin
__________________
Depresie is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 01-31-2016 , 10:02   Re: Happy Hour
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
look in the zombie plague section, there is such plugin
i need some sources (about score) doubling score i found only doubling zp_amo by zmd
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-31-2016 , 17:37   Re: Happy Hour
Reply With Quote #4

Look for zombie plague happy hour
Then look for zombie plague 5.0
Download the zombie plague 5.0 addon, and in the script folder you will find one source called zp50_rewards_frags_hp

Now just combine them ;)
__________________
Depresie is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 11-27-2016 , 21:12   Re: Happy Hour
Reply With Quote #5

dont know if you got it

but in case someone else is looking for this

PHP Code:
#include <amxmodx>
#include <fun>

new cvar_hfh_start,cvar_hfh_end,cvar_hfh_bonusis_hfh_start
public plugin_init() {
    
register_plugin("Happy Frag Hour""1.1""somedude")
    
    
cvar_hfh_start register_cvar("hfh_start","11")
    
cvar_hfh_end register_cvar("hfh_end","06")
    
cvar_hfh_bonus register_cvar("hfh_bonus","1")
    
    
register_event("DeathMsg","hook_death","a")
}

public 
hook_death()
{
    static 
hour_str[3],get_hourkiller,victimget_start,get_end
    
    get_time
("%H",hour_str,2)
    
    
get_hour str_to_num(hour_str)
    
    
get_start get_pcvar_num(cvar_hfh_start)
    
get_end get_pcvar_num(cvar_hfh_end)
    if(
get_start get_end ? (get_start <= get_hour && get_hour get_end) : (get_start <= get_hour || get_hour get_end))
    {
        if(!
is_hfh_start)
        {
            
is_hfh_start true
            
            client_print
(0,print_chat,"[HAPPY HOUR] HAPPY HOUR HAS BEGUN, 2X FRAGS !!!")
            
client_print(0,print_chat,"[HAPPY HOUR] HAPPY HOUR HAS BEGUN, 2X FRAGS!!!")
            
client_print(0,print_chat,"[HAPPY HOUR] HAPPY HOUR From 11 PM to 6 AM !!!")
        }
    } else {
        
is_hfh_start false
    
}
    
    if(!
is_hfh_start) return
    
    
killer read_data(1)
    
victim read_data(2)
    
    if(!
is_user_connected(killer) || get_user_team(killer) == get_user_team(victim)) return
    
    
set_user_frags(killer,get_user_frags(killer) + get_pcvar_num(cvar_hfh_bonus))

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


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