[Include] IpCheck - Adverticement
#1

Hey guys,
as I've seen a few questions about it on the forum and also got some requests by friends about something like this,
I decided to create a small function that allows you to check any text/string for an included IP.

The include contains a simple "IsIp" function that behaves like a boolean.
Here's an example how to use it:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsIp(text))
    {
        SendClientMessage(playerid, 0x999999AA, "You may not advertice!");
        Kick(playerid);
        return 0;
    }
    return 1;
}
So if I would enter "182.395.158.21" (or w/e) into the chat and would use my example above, it would send me a message and kick me from the server.

I hope you guys like it!

External download: My website
or internal download: attached below
Reply


Messages In This Thread
IpCheck - Advertisement - by Sascha - 10.06.2011, 11:12
Re: IpCheck - Adverticement - by br0adyb0ii - 10.06.2011, 11:50
Re: IpCheck - Adverticement - by Phanto90 - 10.06.2011, 12:28
Re: IpCheck - Adverticement - by Sascha - 10.06.2011, 13:21
Re: IpCheck - Adverticement - by GangsTa_ - 10.06.2011, 13:31
Re: IpCheck - Adverticement - by Scenario - 10.06.2011, 13:41
Re: IpCheck - Adverticement - by gamer931215 - 10.06.2011, 13:53
Re: IpCheck - Adverticement - by Sascha - 10.06.2011, 14:08
Re : IpCheck - Adverticement - by Varkoll_ - 10.06.2011, 14:14
Re: IpCheck - Adverticement - by Kaperstone - 09.08.2011, 08:52

Forum Jump:


Users browsing this thread: 2 Guest(s)