I don't know why its not blacking out players who have the same ip in my server. I have set amx_blackout 1 but still nothing happens.
From your code:
PHP Code:
public BlackoutOnDeath( ) {
g_iDeadPlayer = read_data( 2 );
if( g_Blackout && g_bSameIPs[g_iDeadPlayer] && !is_user_alive( g_iDeadPlayer ) ) {
the if condition mentions the g_bSameIPs[g_iDeadPlayer] variable. I don't see any other part in the whole code that initiates and assigns a value to g_bSameIPs except in the ScanIP procedure. This means that if amx_scanips wasn't executed, the g_bSameIPs variable would remain blank meaning that the automatic blackout wouldnt work.
Do you know what I mean?
If there's something that im missing out, please let me know.
Thanks