18.10.2014, 13:27
pawn Код:
new pIP[16];
GetPlayerIp(playerid, pIP, sizeof(pIP));
mysql_format(MySQLCon, query, sizeof(query), "SELECT * FROM `playerdata` WHERE `ip` = '%s'", pIP);
mysql_tquery(MySQLCon, query, "", "");
new numrows = cache_num_rows();
if(numrows >= 3) // then the player has 3 or more accounts with the IP.