new ip[32],string[256];GetPlayerIp(playerid,ip,32);new idx = strfind(ip1, ".",true);new idx2 = strfind(ip1, ".", true, idx+1);if (strcmp(ip1, *insert stored ip here*, true, idx2) == 0){ // here you go}