29.02.2012, 16:11
Hi there, is there a way to find out how many times something is found?
like
And it only kicks if "." is found like 3 times?
like
pawn Код:
new ipfind = strfind(params, ".", true);
new portfind = strfind(params, ":", true);
if(ipfind != -1 && portfind != -1)
{
if(PlayerInfo[playerid][AdminLevel] < 3)
{
new string43[128];
format(string43, sizeof(string43), "%s just got kicked for Advertising by **AntiCheat V2.0**", SenderName);
ProxDetector(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
SendClientMessage(playerid, COLOR_RED, "Advertising is not allowed!");
Kick(playerid);
}