So other should have helped you...
You can use this :
PHP Code:
#include < amxmodx >
#if AMXX_VERSION_NUM < 183
#include < engine >
#define has_map_ent_class(%0) find_ent_by_class(-1, %0)
#endif
#pragma semicolon 1
#define PLUGIN "No Objectives Time Out Message"
#define VERSION "0.0.1"
#define cm(%0) ( sizeof(%0) - 1 )
const TASK_ROUNDEND = 1931543;
new mp_roundtime, Float:g_flRoundTime;
public plugin_init()
{
register_plugin( PLUGIN, VERSION, "ConnorMcLeod" );
if( !has_map_objectives() )
{
mp_roundtime = get_cvar_pointer("mp_roundtime");
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0");
register_logevent("LogEvent_Round_Start", 2, "1=Round_Start");
register_logevent("Event_Round_End", 2, "1=Round_End");
Event_HLTV_New_Round();
}
}
public Event_HLTV_New_Round()
{
remove_task(TASK_ROUNDEND);
g_flRoundTime = floatclamp(get_pcvar_float(mp_roundtime)*60.0, 60.0, 540.0);
}
public LogEvent_Round_Start()
{
set_task(g_flRoundTime, "Task_RoundEnd", TASK_ROUNDEND);
}
public Event_Round_End()
{
remove_task(TASK_ROUNDEND);
}
public Task_RoundEnd()
{
// print your messages here
}
has_map_objectives()
{
return ( has_map_ent_class("func_bomb_target") || has_map_ent_class("info_bomb_target") || has_map_ent_class("func_hostage_rescue")
|| has_map_ent_class("func_escapezone") || has_map_ent_class("func_vip_safetyzone") || has_map_ent_class("hostage_entity") );
}
__________________