I could buy sma but i just bought amxx because half of price. But he sent me parts of code:
Code:
new Float:fTime = entity_get_float( g_iRoundEndEntity, EV_FL_nextthink );
if( fTime != NO_ROUND_END_TIME )
{
fTime += EXTRA_ROUND_TIME;
message_begin( MSG_BROADCAST, g_iMsgId_RoundTime );
write_short( floatround( fTime - get_gametime( ), floatround_floor ) );
message_end( );
entity_set_float( g_iRoundEndEntity, EV_FL_nextthink, fTime );
}
g_iRoundEndEntity = create_entity( "info_target" );
register_event( "RoundTime", "EventRoundTime", "be" );
g_iMsgId_RoundTime = get_user_msgid( "RoundTime" )
public EventRoundTime( )
{
if( g_bRoundActive && entity_get_float( g_iRoundEndEntity, EV_FL_nextthink ) == NO_ROUND_END_TIME )
{
entity_set_float( g_iRoundEndEntity, EV_FL_nextthink, get_gametime( ) + read_data( 1 ) );
}
__________________