View Single Post
1M1e
Member
Join Date: Mar 2020
Old 09-19-2020 , 19:43   Re: help register_event
Reply With Quote #5

Quote:
Originally Posted by Supremache View Post
1. You can use bool:"Player Var"[32] for make this plugin working one time per round.
2. Try to cansel the codes before "RoundStartTime" come, something like:

Code:
register_event("HLTV", "ev_RoundStart", "a", "1=0", "2=0") public ev_RoundStart() {     if(!RoundStartTime)     {         remove_task(g_counter)                 new iPlayers[32]         new iNum                 get_players( iPlayers, iNum )                 for( new i = 0; i < iNum; i++ )         {             g_iRespawn[iPlayers[i]] = false         }     } }
sill dose not work the hudmessage still show
i want when the round end and start new round the hudmessage will remove

Code:
	set_hudmessage( 255, 0, 0, 0.09, 0.0, 1, 0.0, 1.0, 0.0, 0.0, -1)
	ShowSyncHudMsg( 0, g_SyncRestartTimer, "%d Sec Remaining To Disable The Respawn Mod", floatround(fSec))
1M1e is offline