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
Last edited by AnimalMonster; 09-25-2020 at 15:31.
public plugin_precache()
{
//This should be < not <=
//You need to use sizeof() not charsmax() when working with arrays. Charsmax is only used
//when working with a string. This here is an array of strings, so you should treat it as an
//array in this context.
for ( new i = 0 ; i < sizeof( PrecacheSoundList ); i++ )
{
if ( PrecacheSoundList[ i ][ 0 ] != EOS )
precache_sound( PrecacheSoundList[ i ] )
}
}
public EventRoundStart()
{
//It's not ideal to repeatedly call set_task(), so you should call it once with flag a and set the
//repeat parameter to the appropriate number of times.
if ( !task_exists( TaskStartCountdown ) && !task_exists( TaskCountdown ) )
set_task( 4.0 , "StartCountdown" , TaskStartCountdown );
}
//It's not ideal to call set_task(), so you should call it once with flag a and set the
//repeat parameter to the appropriate number of times.
//if(iTime >= 1)
//{
// set_task(1.0, "ZombieCountdown")
//}
}
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
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"
public plugin_precache() { //This should be < not <= //You need to use sizeof() not charsmax() when working with arrays. Charsmax is only used //when working with a string. This here is an array of strings, so you should treat it as an //array in this context. for ( new i = 0 ; i < sizeof( PrecacheSoundList ); i++ ) { if ( PrecacheSoundList[ i ][ 0 ] != EOS ) precache_sound( PrecacheSoundList[ i ] ) } }
public EventRoundStart() { //It's not ideal to repeatedly call set_task(), so you should call it once with flag a and set the //repeat parameter to the appropriate number of times. if ( !task_exists( TaskStartCountdown ) && !task_exists( TaskCountdown ) ) set_task( 4.0 , "StartCountdown" , TaskStartCountdown ); }
//It's not ideal to call set_task(), so you should call it once with flag a and set the //repeat parameter to the appropriate number of times. //if(iTime >= 1) //{ // set_task(1.0, "ZombieCountdown") //} }
new g_iRespawn[MAX_PLAYERS+1], g_TeamInfoCounter[MAX_PLAYERS+1], CsTeams:g_iPlayerTeam[MAX_PLAYERS+1];
new g_pCvarRespawnTime, g_pCvarRespawnDelay, g_pCvarMaxHealth;
@ Bugsy - Hltv new round i think it's like log event round start, they can do the same thing!!!
about precache sound, Well
about call set task many time i did that just for test
PHP Code:
//This is new round,. not round start //register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0")