Anti Advertising - 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 Advertising (
/showthread.php?tid=138078)
Anti Advertising -
bajskorv123 - 31.03.2010
Hey, I need some kind of anti advertising code for my server, for example if i write this into chat on my server:
"Hey come to this server its much more better than this, ip is 85.226.67.59:7777"
Then i get kicked because i wrote an ip into chat.
Thanks in advance
Re: Anti Advertising -
Mike Garber - 31.03.2010
I have never looked into If It's possible, but you could check for #.#.#.# (# = number).
Because an IP always has 1stnr.2ndnr.3rdnr.4thnr .
Re: Anti Advertising -
bajskorv123 - 31.03.2010
Quote:
Originally Posted by mavtias
I have never looked into If It's possible, but you could check for #.#.#.# (# = number).
Because an IP always has 1stnr.2ndnr.3rdnr.4thnr .
|
I know how to do that but i need something more effective
Re: Anti Advertising -
-Davee- - 31.03.2010
http://forum.sa-mp.com/index.php?top...4037#msg634037
Re: Anti Advertising -
bajskorv123 - 31.03.2010
Quote:
Originally Posted by Davee.
|
How to use it?
I don't really understand what Boylett is saying there (With the cells, wtf?)
Re: Anti Advertising -
-Davee- - 01.04.2010
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by Davee.
|
How to use it?
I don't really understand what Boylett is saying there (With the cells, wtf?)
|
pawn Код:
public OnPlayerText(playerid)
{
new ip[4];
if(ipmatch(text, ip))
{
SendClientMessage(playerid, RED, "Your warn message here");
return 0;
}
return 1;
}
Re: Anti Advertising -
[ADC]Aldi96 - 21.04.2011
thnks nicee for scripting men!