hello add to plugins enable disable?
amx_mapname 0
I am sory bad speek English
I am use google translate
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Timeleft and map"
#define AUTHOR "Emp`"
#define VERSION "1.0"
new HUDSYNC, mapname[64];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
get_mapname(mapname,63);
set_task(1.0,"timer_task",_,"",0,"b");
HUDSYNC = CreateHudSyncObj();
}
public timer_task() {
static gmtm, scoreboard[128];
gmtm = get_timeleft();
for(new i=1;i<=32;i++) {
if(is_user_connected(i) && is_user_alive(i) ) {
formatex(scoreboard, 127, "| Kalan Sure: %02d:%02d | Harita: %s |",(gmtm / 60),(gmtm % 60), mapname );
set_hudmessage(190, 190, 190, 0.25, -0.97, 0, 1.0, 1.75, 0.1, 0.1, -1);
ShowSyncHudMsg( i, HUDSYNC, scoreboard );
}
}
}