11.12.2015, 18:23
Hey guys, i wanted to limit registrations to max 3 accounts on 1 IP, so i wrote this check,
However its not working, i placed this at OnPlayerConnect
Код:
new pIP[16]; GetPlayerIp(playerid, pIP, sizeof(pIP)); mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `IP` = '%s'", pIP); mysql_tquery(mysql, query, "", ""); new numrows = cache_num_rows(); if(numrows >= 3) return SendClientMessage(playerid, COLOR_WHITE, "{ff387a}[Server]:{ffffff} You have reached the max registered accounts on this IP, please use your previous account.");