10.06.2011, 11:12
(
Последний раз редактировалось Sascha; 07.05.2016 в 09:45.
)
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:
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
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;
}
I hope you guys like it!
External download: My website
or internal download: attached below