diff --git a/gamemodes/irresistible/config/migrations/cnr/20190101_cnr_remove_xp_autosave.sql b/gamemodes/irresistible/config/migrations/cnr/20190101_cnr_remove_xp_autosave.sql index d314d65..ecf49d1 100644 --- a/gamemodes/irresistible/config/migrations/cnr/20190101_cnr_remove_xp_autosave.sql +++ b/gamemodes/irresistible/config/migrations/cnr/20190101_cnr_remove_xp_autosave.sql @@ -10,4 +10,7 @@ ALTER TABLE `USERS` DROP `XP`; DELETE FROM `SETTINGS` WHERE SETTING_ID = 5; -- -- REPLACE AUTO SAVE SETTING WITH CHAT ID SETTING -UPDATE SETTINGS SET SETTING_ID = 5 WHERE SETTING_ID = 13; \ No newline at end of file +UPDATE SETTINGS SET SETTING_ID = 5 WHERE SETTING_ID = 13; + +-- -- REMOVE MEGABAN TABLE ... REDUNDANT +DROP TABLE `MEGABAN`; \ No newline at end of file diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 9cd393d..595230d 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -564,24 +564,6 @@ public OnPlayerConnect( playerid ) public OnLookupComplete( playerid, success ) { - /*if ( IsProxyUser( playerid ) ) - { - if ( IsProxiesBanned( ) ) - { - for( new i = 0; i < sizeof( g_ispUnbans ); i++ ) - { - if ( strfind( GetPlayerISP( playerid ), g_ispUnbans[ i ] ) == -1 ) - { - return KickPlayer( playerid ); - //return BanEx( playerid, "Proxy Detected!" ); - } - } - } - } - - format( szLargeString, sizeof( szLargeString ), "SELECT * FROM `MEGABAN` WHERE `ISP`='%s' LIMIT 0,1", mysql_escape( GetPlayerISP( playerid ) ) ); - mysql_function_query( dbHandle, szLargeString, true, "OnPlayerMegaBanCheck", "i", playerid );*/ - SendDeathMessage( INVALID_PLAYER_ID, playerid, 200 ); if ( IsProxyEnabledForPlayer( playerid ) ) { @@ -599,54 +581,6 @@ public OnLookupComplete( playerid, success ) return 1; } -/*thread OnPlayerMegaBanCheck( playerid ) -{ - new - rows, fields; - - cache_get_data( rows, fields ); - if ( rows ) - { - new - playerserial[ 45 ]; - - gpci( playerid, playerserial, sizeof( playerserial ) ); - if ( g_Debugging ) { - SendClientMessageToRCON( COLOR_YELLOW, "MEGABAN: %s blocked! GPCI: %s | ISP: %s", ReturnPlayerName( playerid ), playerserial, GetPlayerISP( playerid ) ); - printf("[DEBUG] [MEGABAN] %s blocked! GPCI: %s | ISP: %s", ReturnPlayerName( playerid ), playerserial, GetPlayerISP( playerid ) ); - } - - // IP Blocked - //BlockIpAddress( ReturnPlayerIP( playerid ), 0 ); - //BanEx( playerid, "MEGABAN" ); - SendServerMessage( playerid, "You are banned from this server. (0xAF)" ); - KickPlayer( playerid ); - } - else - { - if ( strmatch( GetPlayerISP( playerid ), "AS812 Rogers Cable Communications Inc." ) || strmatch( GetPlayerISP( playerid ), "AS6799 OTEnet S.A." ) ) - return 1; - - SendDeathMessage( INVALID_PLAYER_ID, playerid, 200 ); - - if ( IsProxyEnabledForPlayer( playerid ) ) { - format( szNormalString, sizeof( szNormalString ), "%s(%d) has connected to the server! (%s)", ReturnPlayerName( playerid ), playerid, GetPlayerCountryName( playerid ) ); - } else { - format( szNormalString, sizeof( szNormalString ), "%s(%d) has connected to the server!", ReturnPlayerName( playerid ), playerid ); - } - - foreach(new i : Player) - { - if ( p_PlayerSettings[ i ] { SETTING_CONNECTION_LOG } ) - SendClientMessage( i, COLOR_CONNECT, szNormalString ); - } - - format( szNormalString, sizeof( szNormalString ), "*%s*", szNormalString ); - DCC_SendChannelMessage( discordGeneralChan, szNormalString ); - } - return 1; -}*/ - public OnNpcDisconnect( npcid, reason ) { return 1; @@ -6947,17 +6881,6 @@ stock textContainsBadTextdrawLetters( const string[ ] ) return false; } -/*stock BanPlayerISP( playerid ) { - if ( !IsPlayerConnected( playerid ) ) - return; - - format( szLargeString, sizeof( szLargeString ), "INSERT INTO `MEGABAN`(`ISP`) VALUES ('%s')", mysql_escape( GetPlayerISP( playerid ) ) ); - mysql_single_query( szLargeString ); - - if ( IsPlayerConnected( playerid ) ) - Kick( playerid ); -}*/ - stock IsValidSkin( skinid ) { if ( skinid == 74 || skinid > 311 || skinid < 0 )