make NYE feature a tiny bit more pretty for another year

This commit is contained in:
Lorenc Pekaj 2019-01-02 00:36:14 +11:00
parent f700d2051b
commit e33b7916ff
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@
// special (xmas/easter/nye) // special (xmas/easter/nye)
// #include "irresistible\cnr\features\christmas.pwn" // #include "irresistible\cnr\features\christmas.pwn"
// #include "irresistible\cnr\features\eastereggs.pwn" // #include "irresistible\cnr\features\eastereggs.pwn"
#include "irresistible\cnr\features\new_years_eve.pwn" // #include "irresistible\cnr\features\new_years_eve.pwn"
// other // other
#include "irresistible\cnr\features\ammunation.pwn" #include "irresistible\cnr\features\ammunation.pwn"

View File

@ -29,10 +29,10 @@ hook OnServerUpdate( )
static bool: bNewYear; static bool: bNewYear;
if ( ! bNewYear ) { if ( ! bNewYear ) {
if ( ! iCompare ) { if ( iCompare <= 0 ) {
TextDrawSetString( g_NewYearCDTD[ 0 ], "~y~Happy New Year!" ), bNewYear = true; TextDrawSetString( g_NewYearCDTD[ 0 ], "Happy New Year!" ), bNewYear = true;
} else { } 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; return 1;
@ -94,7 +94,7 @@ static stock NewYears_InitializeTextdraws( )
TextDrawBackgroundColor(g_NewYearCDTD[ 0 ], 255); TextDrawBackgroundColor(g_NewYearCDTD[ 0 ], 255);
TextDrawFont(g_NewYearCDTD[ 0 ], 3); TextDrawFont(g_NewYearCDTD[ 0 ], 3);
TextDrawLetterSize(g_NewYearCDTD[ 0 ], 0.230000, 1.100000); TextDrawLetterSize(g_NewYearCDTD[ 0 ], 0.230000, 1.100000);
TextDrawColor(g_NewYearCDTD[ 0 ], -1); TextDrawColor(g_NewYearCDTD[ 0 ], COLOR_GOLD);
TextDrawSetOutline(g_NewYearCDTD[ 0 ], 1); TextDrawSetOutline(g_NewYearCDTD[ 0 ], 1);
TextDrawSetProportional(g_NewYearCDTD[ 0 ], 1); TextDrawSetProportional(g_NewYearCDTD[ 0 ], 1);