Onplayertext advertise ban
#3

Quote:
Originally Posted by ► © The LuxurioN™
In OnPlayerText add:

pawn Код:
new ads;

    for(new a, l = strlen(text); a < l; a++)
    {
    if (text[a] == ':' && d == 3) return ads++;
    if(ads == 3) return SendClientMessage(playerid,COLOR_RED,"Not Advertising!");
    if (text[a] == '.' && d < 3) d++;
    if(ads == 3) return Ban(playerid);
    }
    return 1;
}
Attention: Not Tested!
thanks, it didn't work, it also made a little warning, undefined simbol "d"
i've put new d;

but didn't work,
Reply


Messages In This Thread
Onplayertext advertise ban - by Mishima - 30.08.2009, 22:41
Re: Onplayertext advertise ban - by LuxurioN™ - 30.08.2009, 22:53
Re: Onplayertext advertise ban - by Mishima - 30.08.2009, 23:03
Re: Onplayertext advertise ban - by LuxurioN™ - 30.08.2009, 23:10
Re: Onplayertext advertise ban - by Mishima - 31.08.2009, 01:09
Re: Onplayertext advertise ban - by Mishima - 31.08.2009, 19:23
Re: Onplayertext advertise ban - by Mishima - 31.08.2009, 19:42
Re: Onplayertext advertise ban - by Stefan_Toretto - 18.08.2010, 08:55
Re: Onplayertext advertise ban - by Stefan_Toretto - 18.08.2010, 09:01
Re: Onplayertext advertise ban - by Retardedwolf - 18.08.2010, 09:05

Forum Jump:


Users browsing this thread: 1 Guest(s)