How to max 3 accounts on 1 IP
#6

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.
This should work. It basically runs a query and then checks if 3 or more rows are returned. Change "playerdata" and "ip" to work with your gamemode/database.
Reply


Messages In This Thread
How to max 3 accounts on 1 IP - by TheNerka - 18.10.2014, 10:23
Re: How to max 3 accounts on 1 IP - by AmirRFCNR - 18.10.2014, 11:15
Re: How to max 3 accounts on 1 IP - by AmirRFCNR - 18.10.2014, 11:24
Re: How to max 3 accounts on 1 IP - by TheNerka - 18.10.2014, 11:46
Re: How to max 3 accounts on 1 IP - by Neil. - 18.10.2014, 12:26
Re: How to max 3 accounts on 1 IP - by Abagail - 18.10.2014, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)