Anti IP, .com, .info & .org - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti IP, .com, .info & .org (
/showthread.php?tid=244874)
Anti IP, .com, .info & .org -
PhotoMuffin - 28.03.2011
Hi can anyone give me an idea on how to make an anti IP and .com...
I tried to search but failed
Re: Anti IP, .com, .info & .org -
Backwardsman97 - 28.03.2011
You could block messages sent by players that have .com's, .info's, etc. Here's an example.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strfind(text,"rcon",true)!= -1||strfind(text,".com",true)!= -1||strfind(text,".org",true)!= -1)
{
return 0;
}
return 1;
}
Re: Anti IP, .com, .info & .org -
PhotoMuffin - 28.03.2011
TY, but what about IP's I use *.*.*.*?
Re: Anti IP, .com, .info & .org -
Backwardsman97 - 28.03.2011
That would be a little bit more complicated. There might be some example code for it under script snippets.