This works fine for me :
This has nothing different from your version that would make it work with nvgs (code is better though)
PHP Code:
/* This goes away when you turn NightVision on, how can i remove it? */
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define SITE "www.crazyeffect.net"
#define HOW_MUCH "$5"
#define HOW_LONG "Month"
new g_iTask, amx_nextmap, g_iSyncHud, g_iMaxPlayers
public plugin_init()
{
register_plugin("RightTopMessage", "1.0", "GameFreak")
new iMaxEnts = global_get(glb_maxEntities)
new szClassName[2]
g_iMaxPlayers = get_maxplayers()
for(new iEnt=g_iMaxPlayers+1; iEnt<iMaxEnts; iEnt++)
{
if( pev_valid(iEnt) )
{
pev(iEnt, pev_classname, szClassName, charsmax(szClassName))
if( !szClassName[0] )
{
g_iTask = iEnt
RegisterHamFromEntity(Ham_Think, g_iTask, "ShowTimer", 1)
break
}
}
}
amx_nextmap = get_cvar_pointer("amx_nextmap")
g_iSyncHud = CreateHudSyncObj()
}
public ShowTimer( iEnt )
{
if( iEnt != g_iTask )
{
return
}
new szNextMap[32], iTimeLeft = get_timeleft()
get_pcvar_string(amx_nextmap, szNextMap, charsmax(szNextMap))
set_hudmessage(255, 255, 255, 0.75, 0.05, 0, 0.15, 0.30, 0.01, 0.02)
ShowSyncHudMsg(0, g_iSyncHud, "Please visit %s^n[Admin = %s/%s]Time remaining: %d:%02d^nNext map: %s", SITE, HOW_MUCH, HOW_LONG, iTimeLeft / 60, iTimeLeft % 60, szNextMap)
}
__________________