From d0aab3adb6189da7c34dcded9ff184d1d0d6ebb2 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 26 Sep 2018 01:52:53 +1000 Subject: [PATCH] passive mode green textdraw --- gamemodes/irresistible/cnr/textdraws.pwn | 2 +- gamemodes/sf-cnr.pwn | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gamemodes/irresistible/cnr/textdraws.pwn b/gamemodes/irresistible/cnr/textdraws.pwn index 05f696c..e7597c8 100644 --- a/gamemodes/irresistible/cnr/textdraws.pwn +++ b/gamemodes/irresistible/cnr/textdraws.pwn @@ -428,7 +428,7 @@ hook OnScriptInit( ) TextDrawBackgroundColor(g_PassiveModeTD, 255); TextDrawFont(g_PassiveModeTD, 1); TextDrawLetterSize(g_PassiveModeTD, 0.180000, 0.899999); - TextDrawColor(g_PassiveModeTD, -65281); + TextDrawColor(g_PassiveModeTD, COLOR_GREEN); TextDrawSetOutline(g_PassiveModeTD, 1); TextDrawSetProportional(g_PassiveModeTD, 1); diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 5946870..b72c86f 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -4832,8 +4832,6 @@ public OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart ) public OnPlayerDeath( playerid, killerid, reason ) #endif { - printf( "[OnPlayerDeathEx] %d, %d, %d, %f, %d", playerid, killerid, reason, damage, bodypart ); - if ( !p_PlayerLogged{ playerid } ) { return SendServerMessage( playerid, "Possible Fake-kill detected - 0x0A" ), KickPlayerTimed( playerid ); } @@ -5075,8 +5073,6 @@ public OnPlayerDeath( playerid, killerid, reason ) } ClearPlayerWantedLevel( playerid ); - - printf( "[OnPlayerDeathEx] %d, %d, %d, %f, %d", playerid, killerid, reason, damage, bodypart ); return 1; } @@ -25729,8 +25725,6 @@ function PassiveMode_Reset( playerid, time_left ) { if ( p_WantedLevel[ playerid ] > 0 || p_Class[ playerid ] != CLASS_CIVILIAN || -- time_left <= 0 ) { - TextDrawHideForPlayer( playerid, g_PassiveModeTD ); - ResetPlayerPassiveMode( playerid, .passive_disabled = true ); ShowPlayerHelpDialog( playerid, 2000, "Passive mode is ~r~disabled." ); }