04.09.2012, 06:44
Код:
public OnPlayerConnect(playerid) { new playersip[256]; GetPlayerIp(playerid,playersip,sizeof(playersip)); new quer[256]; format(quer, sizeof(quer), "SELECT * FROM bans WHERE TYPE=2 AND PlayerIP='%s'", playersip); mysql_query(quer); mysql_store_result(); if(mysql_num_rows()!=0) { SendClientMessage(playerid, COLOR_WHITE, "Your IP is banned."); SendClientMessage(playerid, COLOR_WHITE, "For unban please visit forum"); Kick(playerid); return 1; } }