Raised This Month: $ Target: $400
 0% 

Why does this go away when nightvision active? (TimeProjector)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-24-2009 , 05:57   Why does this go away when nightvision active? (TimeProjector)
Reply With Quote #1

This is a small plugin i made for my server, but the problem is that it goes away when the nightvision is turned on, is there any way to make it so it works with nightvision to?

(RTM = RightTopMessage)
Attached Files
File Type: sma Get Plugin or Get Source (rtm.sma - 644 views - 920 Bytes)
__________________

Last edited by crazyeffect; 02-24-2009 at 06:01.
crazyeffect is offline
Send a message via MSN to crazyeffect
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-24-2009 , 12:08   Re: Why does this go away when nightvision active? (TimeProjector)
Reply With Quote #2

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_iTaskamx_nextmapg_iSyncHudg_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+1iEnt<iMaxEntsiEnt++)
    {
        if( 
pev_valid(iEnt) )
        {
            
pev(iEntpev_classnameszClassNamecharsmax(szClassName))
            if( !
szClassName[0] )
            {
                
g_iTask iEnt
                RegisterHamFromEntity
(Ham_Thinkg_iTask"ShowTimer"1)
                break
            }
        }
    }
    
amx_nextmap get_cvar_pointer("amx_nextmap")
    
g_iSyncHud CreateHudSyncObj()


public 
ShowTimeriEnt )
{
    if( 
iEnt != g_iTask )
    {
        return
    }

    new 
szNextMap[32], iTimeLeft get_timeleft()
    
get_pcvar_string(amx_nextmapszNextMapcharsmax(szNextMap)) 

    
set_hudmessage(2552552550.750.0500.150.300.010.02
    
ShowSyncHudMsg(0g_iSyncHud"Please visit %s^n[Admin = %s/%s]Time remaining: %d:%02d^nNext map: %s"SITEHOW_MUCHHOW_LONGiTimeLeft 60iTimeLeft 60szNextMap

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-24-2009 , 12:36   Re: Why does this go away when nightvision active? (TimeProjector)
Reply With Quote #3

It works fantastic

Thanks, +k
__________________

Last edited by crazyeffect; 02-24-2009 at 13:56.
crazyeffect is offline
Send a message via MSN to crazyeffect
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode