13.02.2012, 12:27
Код:
new pIP[MAX_PLAYERS][16], pTime[MAX_PLAYERS]; public OnPlayerConnect(playerid) { new playerIP[16], playerInteger[2]; GetPlayerIp(playerid, playerIP, 16); playerInteger[0] = gettime() + 2; for(new i; i < MAX_PLAYERS; ++i) { if(pTime[i] && !strcmp(pIP, playerIP) && pTime[i] >= playerInteger[0]) { if(++playerInteger[1] == 3) return BanEx(playerid, "FUCK OFF IDIOT, YOU SUCK."); } } strmid(pIP, playerIP, 0, 16); return pTime[playerid] = pInteger[0]; }
da varios erros! (+REP para quem solucionar)