View Single Post
1M1e
Member
Join Date: Mar 2020
Old 09-25-2020 , 17:57   Re: help register_event
Reply With Quote #24

Quote:
Originally Posted by AnimalMonster View Post
ok let me test by myself then imma see what s the problem and fix that.
w8, what amxx do you have?? i use 1.9.0 and it's already included in the amxmodx include. if you don't use atleast 1.8.3 get the dhudmessage include then try again
i add it
still dose not work
and i am using 1.8.2

Quote:
Originally Posted by Supremache View Post
I made this plugin yesterday, for coutdown timer, follow steps and you will know how to do that !!
P.s: Use "show_hudmessage" not "SyncObj hud"

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Countdown" #define VERSION "1.0" #define AUTHOR "Supremache" new PrecacheSoundList[10][] = {     "fvox/one.wav", "fvox/two.wav", "fvox/three.wav", "fvox/four.wav", "fvox/five.wav",     "fvox/six.wav", "fvox/seven.wav", "fvox/eight.wav", "fvox/nine.wav", "fvox/ten.wav" }; new iCountdown new iTime public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0") } public plugin_precache() {     for(new i = 0; i <= charsmax(PrecacheSoundList); i++)     {         precache_sound( PrecacheSoundList[i] )     } } public EventRoundStart() {     set_task(4.0, "ZombieCountdown")     iTime = 10     iCountdown = 10 } public ZombieCountdown() {     iCountdown--         emit_sound( 0, CHAN_VOICE, PrecacheSoundList[ iCountdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )         set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);     show_hudmessage(0, "Infection in %i", iTime);                 --iTime;         if(iTime >= 1)     {         set_task(1.0, "ZombieCountdown")     } }
i will try it

Quote:
Originally Posted by Bugsy View Post
There are a few issues in your code
Spoiler
thx for update @Bugsy

Last edited by 1M1e; 09-25-2020 at 17:58.
1M1e is offline