Something like this...
Code:
#include <amxmodx>
#define PLUGIN "Timelimit"
#define VERSION "1.0"
#define AUTHOR "ZiruAl"
new timelimit
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say time", "Timelimite" );
register_clcmd( "say /time", "Timelimite" );
register_clcmd( "say_team time", "Timelimite" );
register_clcmd( "say_team /time", "Timelimite" );
timelimit = get_cvar_pointer("mp_timelimit")
}
public Timelimite( id )
{
if( is_user_alive( id ))
{
set_hudmessage(200, 255, 255, 0.70, 0.0, 0, 6.0)
show_hudmessage(id, "Timeleft: %i", get_pcvar_num(timelimit) - floatround(get_gametime() / 60) )
}
}
__________________