passive mode green textdraw
This commit is contained in:
parent
ffd3f872bc
commit
d0aab3adb6
@ -428,7 +428,7 @@ hook OnScriptInit( )
|
|||||||
TextDrawBackgroundColor(g_PassiveModeTD, 255);
|
TextDrawBackgroundColor(g_PassiveModeTD, 255);
|
||||||
TextDrawFont(g_PassiveModeTD, 1);
|
TextDrawFont(g_PassiveModeTD, 1);
|
||||||
TextDrawLetterSize(g_PassiveModeTD, 0.180000, 0.899999);
|
TextDrawLetterSize(g_PassiveModeTD, 0.180000, 0.899999);
|
||||||
TextDrawColor(g_PassiveModeTD, -65281);
|
TextDrawColor(g_PassiveModeTD, COLOR_GREEN);
|
||||||
TextDrawSetOutline(g_PassiveModeTD, 1);
|
TextDrawSetOutline(g_PassiveModeTD, 1);
|
||||||
TextDrawSetProportional(g_PassiveModeTD, 1);
|
TextDrawSetProportional(g_PassiveModeTD, 1);
|
||||||
|
|
||||||
|
@ -4832,8 +4832,6 @@ public OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart )
|
|||||||
public OnPlayerDeath( playerid, killerid, reason )
|
public OnPlayerDeath( playerid, killerid, reason )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
printf( "[OnPlayerDeathEx] %d, %d, %d, %f, %d", playerid, killerid, reason, damage, bodypart );
|
|
||||||
|
|
||||||
if ( !p_PlayerLogged{ playerid } ) {
|
if ( !p_PlayerLogged{ playerid } ) {
|
||||||
return SendServerMessage( playerid, "Possible Fake-kill detected - 0x0A" ), KickPlayerTimed( playerid );
|
return SendServerMessage( playerid, "Possible Fake-kill detected - 0x0A" ), KickPlayerTimed( playerid );
|
||||||
}
|
}
|
||||||
@ -5075,8 +5073,6 @@ public OnPlayerDeath( playerid, killerid, reason )
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClearPlayerWantedLevel( playerid );
|
ClearPlayerWantedLevel( playerid );
|
||||||
|
|
||||||
printf( "[OnPlayerDeathEx] %d, %d, %d, %f, %d", playerid, killerid, reason, damage, bodypart );
|
|
||||||
return 1;
|
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 )
|
if ( p_WantedLevel[ playerid ] > 0 || p_Class[ playerid ] != CLASS_CIVILIAN || -- time_left <= 0 )
|
||||||
{
|
{
|
||||||
TextDrawHideForPlayer( playerid, g_PassiveModeTD );
|
|
||||||
|
|
||||||
ResetPlayerPassiveMode( playerid, .passive_disabled = true );
|
ResetPlayerPassiveMode( playerid, .passive_disabled = true );
|
||||||
ShowPlayerHelpDialog( playerid, 2000, "Passive mode is ~r~disabled." );
|
ShowPlayerHelpDialog( playerid, 2000, "Passive mode is ~r~disabled." );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user