There are some problems with:
PHP Code:
public CBasePlayer_Killed_Post( iVictim, iKiller )
{
/*
<^> Remove player's alive bit.
*/
FBitClear( IsAlive, iVictim );
/*
<^> Inform other plugins of the player kill player.
*/
new iReturn;
ExecuteForward( ForwardHandle_PlayerKilled, iReturn, iVictim );
/*
<^> Show message.
*/
if( iKiller && iKiller != iVictim )
{
Print( 0, get_user_team( iKiller ), "%L", LANG_SERVER, "PLAYER_KILLED_PLAYER", GetPlayerLangName( iKiller ), GetPlayerName( iKiller ), GetPlayerLangName( iVictim ), GetPlayerName( iVictim ) );
}
/*
<^> Deal with boxing players.
*/
if( FBitGet( IsBoxing, iVictim ) )
{
new iOpponent = g_iBoxOpponent[ iVictim ];
FBitClear( IsBoxing, iVictim );
FBitClear( IsBoxing, iOpponent );
set_user_rendering( iVictim, kRenderFxNone, 0 ,0, 0, kRenderNormal, 1 );
set_user_rendering( iOpponent, kRenderFxNone, 0 ,0, 0, kRenderNormal, 1 );
g_iBoxOpponent[ iVictim ] = 0;
g_iBoxOpponent[ iOpponent ] = 0;
}
}
Error:
Code:
L 05/20/2016 - 13:24:06: Expected 1 parameters, got 2
L 05/20/2016 - 13:24:06: [AMXX] Displaying debug trace (plugin "BigHorn_Jailbreak.amxx")
L 05/20/2016 - 13:24:06: [AMXX] Run time error 10: native error (native "ExecuteForward")
L 05/20/2016 - 13:24:06: [AMXX] [0] BigHorn_Jailbreak.sma::CBasePlayer_Killed_Post (line 703)
And when a player kills another in a box match in the chat theres a bug in the GetPlayerLangName, because the player who gets killed its called guard and not prisoner.
__________________