[Modificare]Plugin ZP_CountDown 4.3 fix5a

In acest subforum puteti cere modificari necesare ale pluginurilor .
Forum rules
Image


Aveti grija cand creati un topic puneti la titlu [Modificare] Nume plugin.
Nu aveti voie sa cereti modificarea mai multor plugin-uri intr-un singur topic.
Locked
User avatar
Alex Boxer
Membru
Membru
Posts: 649
Joined: 7 years ago
Location: Bucuresti
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 21
Contact:
Status: Offline

6 years ago

Salut CsGamers, as dori sa imi modifica-ti acest plugin de zombie plague 4.3 fix5a countdown. Eu am mai incercat sa il modific dar nu stiu ce are la sfarsit ca nu vrea sa se auda ultimul sunet. Adica am bagat eu un sound la countdown... gen cand se termina numaratoarea incepe un sound "Warning biohazard detected"
Link de la ultimul sound -> [Please login or register to view this link] (descarca-ti-l format wav ca doar wav suporta acest plugin :) )
Link plugin -> [Please login or register to view this link]
Cam cum arata acuma la mine acest plugin. Pana la urma am sters acel sound de acolo ca nu mai avea rost. Poate mi-l faceti voi ca sa functioneze. Mersi :)

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Countdown"
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"

new countdown
new time_s

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}

public plugin_precache()
{
    precache_sound( "zombie_plague/zp_ten.wav" )
    precache_sound( "zombie_plague/zp_nine.wav" )
    precache_sound( "zombie_plague/zp_eight.wav" )
    precache_sound( "zombie_plague/zp_seven.wav" )
    precache_sound( "zombie_plague/zp_six.wav" )
    precache_sound( "zombie_plague/zp_five.wav" )
    precache_sound( "zombie_plague/zp_four.wav" )
    precache_sound( "zombie_plague/zp_three.wav" )
    precache_sound( "zombie_plague/zp_two.wav" )
    precache_sound( "zombie_plague/zp_one.wav" )
}

public event_round_start()
{
    set_task(4.0, "zombie_countdown")
    time_s = 10
    countdown = 9
}

public zombie_countdown()
{    
    new speak[ 10 ][] = { "zombie_plague/zp_one.wav", "zombie_plague/zp_two.wav", "zombie_plague/zp_three.wav", "zombie_plague/zp_four.wav", "zombie_plague/zp_five.wav", "zombie_plague/zp_six.wav", "zombie_plague/zp_seven.wav", "zombie_plague/zp_eight.wav", "zombie_plague/zp_nine.wav", "zombie_plague/zp_ten.wav" }

    emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
    countdown--
        
    set_hudmessage(20, 100, 150, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10); 
    show_hudmessage(0, "***Infectia va incepe in %i***", time_s);
    --time_s;
        
    if(time_s >= 1)
    {
        set_task(1.0, "zombie_countdown")
    }
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
User avatar
Barlap
ViP
ViP
Posts: 2354
Joined: 8 years ago
Location: Videle
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 25
Contact:
Status: Offline
Romania

6 years ago

Netestat

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Countdown"
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"

new countdown
new time_s

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}

public plugin_precache()
{
    precache_sound( "zombie_plague/zp_ten.wav" )
    precache_sound( "zombie_plague/zp_nine.wav" )
    precache_sound( "zombie_plague/zp_eight.wav" )
    precache_sound( "zombie_plague/zp_seven.wav" )
    precache_sound( "zombie_plague/zp_six.wav" )
    precache_sound( "zombie_plague/zp_five.wav" )
    precache_sound( "zombie_plague/zp_four.wav" )
    precache_sound( "zombie_plague/zp_three.wav" )
    precache_sound( "zombie_plague/zp_two.wav" )
    precache_sound( "zombie_plague/zp_one.wav" )
    precache_sound( "zombie_plague/zp_start.wav" )
}

public event_round_start()
{
    set_task(4.0, "zombie_countdown")
    time_s = 11
    countdown = 10
}

public zombie_countdown()
{    
    new speak[ 11 ][] = { "zombie_plague/zp_one.wav", "zombie_plague/zp_two.wav", "zombie_plague/zp_three.wav", "zombie_plague/zp_four.wav", "zombie_plague/zp_five.wav", "zombie_plague/zp_six.wav", "zombie_plague/zp_seven.wav", "zombie_plague/zp_eight.wav", "zombie_plague/zp_nine.wav", "zombie_plague/zp_ten.wav, "zombie_plague/zp_start.wav" }

    emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
    countdown--
        
    set_hudmessage(20, 100, 150, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10); 
    show_hudmessage(0, "***Infectia va incepe in %i***", time_s);
    --time_s;
        
    if(time_s >= 1)
    {
        set_task(1.0, "zombie_countdown")
    }
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
User avatar
Alex Boxer
Membru
Membru
Posts: 649
Joined: 7 years ago
Location: Bucuresti
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 21
Contact:
Status: Offline

6 years ago

Image
:91:
EDIT : Am rezolvat cu problema din imagine :) . Dar acel zp_start.wav incepe inaintea numaratoarei si in loc sa numere de la 10 (normal) incepe de la 11. Vreau sa se auda acel sound la sfarsitul numaratoarei. Si fara sa apare hud la zp_start :) Daca se poate
Pepisor
Membru Fidel
Membru Fidel
Posts: 1888
Joined: 8 years ago
Location: Vișeu de Sus
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 24
Contact:
Status: Offline

6 years ago

Ia incearca asta:

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Countdown"
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"

new countdown
new time_s

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}

public plugin_precache()
{
    precache_sound( "zombie_plague/zp_ten.wav" )
    precache_sound( "zombie_plague/zp_nine.wav" )
    precache_sound( "zombie_plague/zp_eight.wav" )
    precache_sound( "zombie_plague/zp_seven.wav" )
    precache_sound( "zombie_plague/zp_six.wav" )
    precache_sound( "zombie_plague/zp_five.wav" )
    precache_sound( "zombie_plague/zp_four.wav" )
    precache_sound( "zombie_plague/zp_three.wav" )
    precache_sound( "zombie_plague/zp_two.wav" )
    precache_sound( "zombie_plague/zp_one.wav" )
    precache_sound( "zombie_plague/zp_start.wav" )
}

public event_round_start()
{
    set_task(4.0, "zombie_countdown")
    time_s = 10
    countdown = 10
}

public zombie_countdown()
{    
    new speak[ 11 ][] = { "zombie_plague/zp_one.wav", "zombie_plague/zp_two.wav", "zombie_plague/zp_three.wav", "zombie_plague/zp_four.wav", "zombie_plague/zp_five.wav", "zombie_plague/zp_six.wav", "zombie_plague/zp_seven.wav", "zombie_plague/zp_eight.wav", "zombie_plague/zp_nine.wav", "zombie_plague/zp_ten.wav, "zombie_plague/zp_start.wav" }

    emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
    countdown--
        
    set_hudmessage(20, 100, 150, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10); 
    show_hudmessage(0, "***Infectia va incepe in %i***", time_s);
    --time_s;
        
    if(time_s >= 1)
    {
        set_task(1.0, "zombie_countdown")
    }
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
Nu este testat. Compileaza aici : [Please login or register to view this link][/b]
User avatar
Alex Boxer
Membru
Membru
Posts: 649
Joined: 7 years ago
Location: Bucuresti
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 21
Contact:
Status: Offline

6 years ago

:tc: Lipsa de interes. Perisor am incercat si acela pe care il l-ai lasat dar e cam acelasi lucru. Ma rog. Va multumesc pentru ajutor ! :)
Locked

Return to “Modificare plugin”