05.05.2015, 10:10
stock CheckPlayerAccount( playerid )
{
format( gsQuery, 256, "SELECT `IP` FROM `Accounts` WHERE `Name` = '%s'", PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_ACCOUNT_USERNAME, playerid );
}
--------------------------------------------
format( gsQuery, 512, "SELECT * FROM `Banlist` WHERE `IP` = '%s' OR `Name` = '%s'", connecting_ip, PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid );
TogglePlayerSpectating(playerid, true);
LoadRemoveBuildings( playerid );
return ( 1 );
}
{
format( gsQuery, 256, "SELECT `IP` FROM `Accounts` WHERE `Name` = '%s'", PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_ACCOUNT_USERNAME, playerid );
}
--------------------------------------------
format( gsQuery, 512, "SELECT * FROM `Banlist` WHERE `IP` = '%s' OR `Name` = '%s'", connecting_ip, PlayerName( playerid ) );
mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid );
TogglePlayerSpectating(playerid, true);
LoadRemoveBuildings( playerid );
return ( 1 );
}