Код
find_authid( authid[ 32 ] )
{
new stored_authid[ 32 ]
for ( new i; i <= g_StoreKill_Count; ++i )
{
parse( StoreKills[ i ], stored_authid, 31 ) // строка 1098 !!!
if ( equal( stored_authid, authid ) )
return i
}
return -1
}
Код
public client_disconnect( id )
{
if ( !g_atac_on )
return
remove_task( MENU_TASK + id )
new punishhook = find_punishhook( id, ATAC_HOOK_RESET )
new phook
while ( punishhook )
{
exec_Punishment( id, 0, ATAC_HOOK_RESET, punishhook )
phook = punishhook
punishhook = find_punishhook( id, ATAC_HOOK_RESET )
}
if ( !phook )
{
punishhook = find_punishhook(id, ATAC_HOOK_SPAWNED )
while ( punishhook )
{
PlayerPunish[ id ][ punishhook ] = 0
phook = punishhook
punishhook = find_punishhook( id, ATAC_HOOK_SPAWNED )
}
}
for ( new player = 1; player <= maxplayers; ++player )
{
if ( KilledMenu[ id ][ player ] )
{
KilledMenu[ id ][ player ] = 0 // Make sure record is cleared
if ( get_pcvar_num( gCVARTKAvoidance ) )
check_teamkills( id )
}
if ( CurrentKiller[ player ] == id )
{
show_menu( player, 0, " ", 0 )
find_killer( player ) // Find next TK'er for Victim
if ( get_pcvar_num( gCVARTKAvoidance ) )
check_teamkills( id )
}
}
if ( !is_user_bot( id ) && get_pcvar_num( gCVARStoreKills ) )
{
new temp[ 38 ]
new found = find_authid( KillerAuthID[ id ] ) // строка 240 !!!
if ( found != -1 )
{
new stored_authid[ 32 ], stored_kill[ 3 ], stored_punish[ 3 ]
parse( StoreKills[ found ], stored_authid, 31, stored_kill, 2, stored_punish, 2 )
formatex( temp, 37, "%s %i %i", KillerAuthID[ id ], ( TeamKills[ id ] >= get_pcvar_num( gCVARTeamKills ) ) ? 0 : TeamKills[ id ], phook )
StoreKills[ found ] = temp
}
else if ( found == -1 && g_StoreKill_Count < MAX_STORED_KILLS )
{
formatex( temp, 37, "%s %i %i", KillerAuthID[ id ], TeamKills[ id ], phook )
StoreKills[ g_StoreKill_Count ] = temp
g_StoreKill_Count++
}
}
for ( new j; j < MAX_PUNISHMENTS; ++j ) // Clear all plugin player punishments
PlayerPunish[ id ][ j ] = 0
}