SA-MP Forums Archive
Some kind of "duck" - 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: Some kind of "duck" (/showthread.php?tid=130245)



Some kind of "duck" - sass839 - 25.02.2010

Hi, im looking for some kind of duck, that if you should tell some ip on server, your account will be locked. Does someone have something like that, and maybe you can explain me how it works too than?

Thanks i appreciate your help!


Re: Some kind of "duck" - sass839 - 25.02.2010

Please people! Need help fast!


Re: Some kind of "duck" - Backwardsman97 - 26.02.2010

I don't see where you are getting the word duck for this.


Re: Some kind of "duck" - sass839 - 26.02.2010

Ok, maybe duck isn't the right word, but maybe you have something like that? If someone should tell his ip on server, than his account will be locked automatically. You know what I mean?


Re: Some kind of "duck" - Correlli - 26.02.2010

You mean an anti-advertising script? There are many on this forum, use the search button.


Re: Some kind of "duck" - Backwardsman97 - 26.02.2010

Yeah I see what you mean. You can search a player's text every time he types something for certain words. Ip's might be kinda harder. You could block his message if it has the word 'ip' in it. But you can't really just block him from typing any ip. At least not easily.

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(strfind(text,"ip",true)!= -1 )
  {
    return 0;
  }
  return 1;
}
That would block his message if he typed the word ip. You could check and see if he typed a period, then see if there were 3 numbers before that and that would work pretty well I think. Other then that, you could try spam control or just get more admins.


Re: Some kind of "duck" - Correlli - 26.02.2010

One of the members on Balcan SA:MP forum (JoeBullet) posted an anti-ip-advertising script which requires an sscanf plugin. I've never tried it, but you can try it out yourself - http://balkan-samp.com/forum/index.php?topic=2921.0
The text is in the Croatian language which you probably don't understand, just copy the code and download the sscanf plugin by ******.


Re: Some kind of "duck" - sass839 - 26.02.2010

Got it, thanks for your help!