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

[SOLVED] Compile error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 06-30-2015 , 10:56   [SOLVED] Compile error
Reply With Quote #1

hey can anyone convert this plugin lang into dhud
i am getting errors ;-;
Attached Files
File Type: sma Get Plugin or Get Source (zm_countdown.sma - 512 views - 2.5 KB)
File Type: inc dhudmessage.inc (3.4 KB, 110 views)
File Type: txt CSO_ZM3_Countdown.txt (149 Bytes, 105 views)
__________________

Last edited by killer999; 07-02-2015 at 12:25.
killer999 is offline
Send a message via Skype™ to killer999
hadesownage
AlliedModders Donor
Join Date: Jun 2013
Location: Romania, Iași
Old 06-30-2015 , 18:30   Re: [DHUD] Compile error
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <dhudmessage>

#define VERSION "1.0"

new time_s
new const g_zm3_roundstart[][] = {"sound/cso/zombi_start.mp3"}
new const 
g_zm3_infectchant[][] = {"cso/zombi_coming_1_cn","cso/zombi_coming_2_cn"}
new const 
g_zm3_countchant[][] = { "cso/one.wav""cso/two.wav""cso/three.wav""cso/four.wav""cso/five.wav""cso/six.wav""cso/seven.wav""cso/eight.wav""cso/nine.wav""cso/ten.wav" }

public 
plugin_init() 
{
    
register_plugin("[CSO ZM3] - Zombie Countdown"VERSION"jc980, JeproKs Productions Team")
    
register_event("HLTV""event_round_start""a""1=0""2=0")
}

public 
plugin_precache()
{
    
register_dictionary("csozm3_countdown.txt")
    
    new 
iStartiChantiCount
    
    
for ( iStart 0iStart sizeof g_zm3_roundstartiStart++ )
    for ( 
iChant 0iChant sizeof g_zm3_infectchantiChant++ )
    for ( 
iCount 0iCount sizeof g_zm3_countchantiCount++ )
    
    
precache_sound g_zm3_roundstart iStart ] ) 
    
precache_sound g_zm3_infectchant iChant ] ) 
    
precache_sound g_zm3_countchant iCount ] ) 
}

public 
event_round_start()
{
    
csozm3_countdown()
    
time_s 20
}

public 
csozm3_countdown()
{       
    
client_cmd(0,"mp3 play %s",  g_zm3_roundstart)
    
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
    
show_dhudmessage(0"%L""COUNTDOWN_NOTICE",time_s);
    
    --
time_s;
    
    if(
time_s >= 1)
    {
        
set_task(1.0"csozm3_countdown")
    }
    
    if(
time_s == 10)
    {
        
emit_sound0CHAN_VOICEg_zm3_countchant[time_s 1], 1.0ATTN_NORM0PITCH_NORM )
    }
}  

public 
zp_user_infected_postidinfectornemesis )
{
    if ( !
infector || nemesis )
        return;
    
    if(
zp_get_user_first_zombie(id))
    {
        
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
        
show_dhudmessage(0"%L""FIRST_NOTICE",id)
        
//client_print(0,print_center,"%L", "FIRST_NOTICE",id)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }
    else
    {
        
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
        
show_dhudmessage(0,"%L""INFECTED_NOTICE",id,infector)
        
//client_print(0,print_center,"%L", "INFECTED_NOTICE",id,infector)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }

hadesownage is offline
Send a message via Yahoo to hadesownage Send a message via Skype™ to hadesownage
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 07-02-2015 , 12:24   Re: [DHUD] Compile error
Reply With Quote #3

Quote:
Originally Posted by hadesownage View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <dhudmessage>

#define VERSION "1.0"

new time_s
new const g_zm3_roundstart[][] = {"sound/cso/zombi_start.mp3"}
new const 
g_zm3_infectchant[][] = {"cso/zombi_coming_1_cn","cso/zombi_coming_2_cn"}
new const 
g_zm3_countchant[][] = { "cso/one.wav""cso/two.wav""cso/three.wav""cso/four.wav""cso/five.wav""cso/six.wav""cso/seven.wav""cso/eight.wav""cso/nine.wav""cso/ten.wav" }

public 
plugin_init() 
{
    
register_plugin("[CSO ZM3] - Zombie Countdown"VERSION"jc980, JeproKs Productions Team")
    
register_event("HLTV""event_round_start""a""1=0""2=0")
}

public 
plugin_precache()
{
    
register_dictionary("csozm3_countdown.txt")
    
    new 
iStartiChantiCount
    
    
for ( iStart 0iStart sizeof g_zm3_roundstartiStart++ )
    for ( 
iChant 0iChant sizeof g_zm3_infectchantiChant++ )
    for ( 
iCount 0iCount sizeof g_zm3_countchantiCount++ )
    
    
precache_sound g_zm3_roundstart iStart ] ) 
    
precache_sound g_zm3_infectchant iChant ] ) 
    
precache_sound g_zm3_countchant iCount ] ) 
}

public 
event_round_start()
{
    
csozm3_countdown()
    
time_s 20
}

public 
csozm3_countdown()
{       
    
client_cmd(0,"mp3 play %s",  g_zm3_roundstart)
    
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
    
show_dhudmessage(0"%L""COUNTDOWN_NOTICE",time_s);
    
    --
time_s;
    
    if(
time_s >= 1)
    {
        
set_task(1.0"csozm3_countdown")
    }
    
    if(
time_s == 10)
    {
        
emit_sound0CHAN_VOICEg_zm3_countchant[time_s 1], 1.0ATTN_NORM0PITCH_NORM )
    }
}  

public 
zp_user_infected_postidinfectornemesis )
{
    if ( !
infector || nemesis )
        return;
    
    if(
zp_get_user_first_zombie(id))
    {
        
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
        
show_dhudmessage(0"%L""FIRST_NOTICE",id)
        
//client_print(0,print_center,"%L", "FIRST_NOTICE",id)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }
    else
    {
        
set_dhudmessage(01600, -1.00.2526.03.00.11.5)
        
show_dhudmessage(0,"%L""INFECTED_NOTICE",id,infector)
        
//client_print(0,print_center,"%L", "INFECTED_NOTICE",id,infector)
        
emit_sound0CHAN_VOICEg_zm3_infectchant [random_num(1,2)], 1.0ATTN_NORM0PITCH_NORM )
    }

Thanks tested it working
__________________
killer999 is offline
Send a message via Skype™ to killer999
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 13:48.


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