05.12.2015, 21:24
The function below does not work!
To OnPlayerConnect:
The player is named and IP in "bans" table and but still may enter.
To OnPlayerConnect:
Код HTML:
mysql_format(MySQLCon, query, sizeof(query), "SELECT * FROM bans WHERE IP = '%s' AND `Player` = '%e'", playerIP, GetName(playerid)); mysql_query(MySQLCon, query); if(cache_num_rows()) { SetTimerEx("KickPublic", 50, false, "i", playerid); return 1; }