Anti Advertisement not 100 % help please
#1

this is example code
stock AdvertisementCheck(string[])
{
if(!strfind(string,"www.",false))
{
return true;
}
return false;
}

public OnPlayerText(playerid, text[])
{
if(AdvertisementCheck(text))
{
PlayerInfo[playerid][pLocked] = 1;
Kick(playerid);
return 0;
}

when i said www. (Kicked)
when i said awww. (Not Kicked)
when i said (Space)www. (Not Kicked)
when i said aaaaawww. (not kicked)
when i said (Space)(Space) or (Space)(Space)(Space)www. (Not Kicked)

how to detect all word ?
Reply


Messages In This Thread
Anti Advertisement not 100 % help please - by jame20702 - 22.05.2010, 13:10
Re: Anti Advertisement not 100 % help please - by sushihusi - 22.05.2010, 13:24
Re: Anti Advertisement not 100 % help please - by jame20702 - 22.05.2010, 14:04
Re: Anti Advertisement not 100 % help please - by jame20702 - 22.05.2010, 14:06
Re: Anti Advertisement not 100 % help please - by Jefff - 22.05.2010, 14:11
Re: Anti Advertisement not 100 % help please - by jame20702 - 23.05.2010, 00:30

Forum Jump:


Users browsing this thread: 1 Guest(s)