From e33b7916fffe5063415f5f8cf890165e61b32b86 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 2 Jan 2019 00:36:14 +1100 Subject: [PATCH] make NYE feature a tiny bit more pretty for another year --- gamemodes/irresistible/cnr/features/_features.pwn | 2 +- gamemodes/irresistible/cnr/features/new_years_eve.pwn | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/_features.pwn b/gamemodes/irresistible/cnr/features/_features.pwn index 5b87633..f40b5ee 100644 --- a/gamemodes/irresistible/cnr/features/_features.pwn +++ b/gamemodes/irresistible/cnr/features/_features.pwn @@ -24,7 +24,7 @@ // special (xmas/easter/nye) // #include "irresistible\cnr\features\christmas.pwn" // #include "irresistible\cnr\features\eastereggs.pwn" -#include "irresistible\cnr\features\new_years_eve.pwn" +// #include "irresistible\cnr\features\new_years_eve.pwn" // other #include "irresistible\cnr\features\ammunation.pwn" diff --git a/gamemodes/irresistible/cnr/features/new_years_eve.pwn b/gamemodes/irresistible/cnr/features/new_years_eve.pwn index f8994a8..6d17531 100644 --- a/gamemodes/irresistible/cnr/features/new_years_eve.pwn +++ b/gamemodes/irresistible/cnr/features/new_years_eve.pwn @@ -29,10 +29,10 @@ hook OnServerUpdate( ) static bool: bNewYear; if ( ! bNewYear ) { - if ( ! iCompare ) { - TextDrawSetString( g_NewYearCDTD[ 0 ], "~y~Happy New Year!" ), bNewYear = true; + if ( iCompare <= 0 ) { + TextDrawSetString( g_NewYearCDTD[ 0 ], "Happy New Year!" ), bNewYear = true; } else { - TextDrawSetString( g_NewYearCDTD[ 0 ], sprintf( "%s~n~ till %d", secstonewyear( iCompare ), NEW_YEAR ) ); + TextDrawSetString( g_NewYearCDTD[ 0 ], sprintf( "~w~%s~n~~w~ till %d", secstonewyear( iCompare ), NEW_YEAR ) ); } } return 1; @@ -94,7 +94,7 @@ static stock NewYears_InitializeTextdraws( ) TextDrawBackgroundColor(g_NewYearCDTD[ 0 ], 255); TextDrawFont(g_NewYearCDTD[ 0 ], 3); TextDrawLetterSize(g_NewYearCDTD[ 0 ], 0.230000, 1.100000); - TextDrawColor(g_NewYearCDTD[ 0 ], -1); + TextDrawColor(g_NewYearCDTD[ 0 ], COLOR_GOLD); TextDrawSetOutline(g_NewYearCDTD[ 0 ], 1); TextDrawSetProportional(g_NewYearCDTD[ 0 ], 1);