21.08.2015, 20:00
Hello. I noticed that this "protection" only go to the first clan to clan but not otherwise. Could you please help me?
PHP код:
new Cache: db = mysql_query(mysql, "SELECT * FROM `clans`");
GetPlayerName(playerid, szName, sizeof(szName));
for(new i, j = cache_get_row_count (); i != j; ++i)
{
cache_get_field_content(i, "ID", szString); x = strval(szString);
if(strfind(szName, ClanInfo[x][cTag], true) != -1 || strfind(ClanInfo[x][cTag], szName, true) != -1) {
SendClientMessage(playerid, COLOR_RED, "Your name contains clan tag so you get a kick!");
SetTimerEx("KickPlayer", 1000, 0, "d", playerid);
}
return 1;
}
cache_delete(db);