SA-MP Forums Archive
I got a question please tell me - 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)
+--- Thread: I got a question please tell me (/showthread.php?tid=387911)



I got a question please tell me - dr.lozer - 26.10.2012

hi all i need a Anti Adv (AntiAdv will kick those who post IP in chat) and AntiWebsite (Antiwebsite will kick those who post a website in chat)

Need for my server

Thanks.
-Dr.Lozer


Re: I got a question please tell me - ThePhenix - 26.10.2012

Check it:
I think you can modifie something and make it to detect IPs.
https://sampforum.blast.hk/showthread.php?tid=248973


Re: I got a question please tell me - dr.lozer - 26.10.2012

hmmm im not that much good scripter :P sry it didn't help


Any one else ??


Re: I got a question please tell me - Face9000 - 26.10.2012

OnPlayerText:

pawn Код:
new is1=0;
    new r=0;
    while(strlen(text[is1]))
    {
    if('0'<=text[is1]<='9')
    {
    new is2=is1+1;
    new p=0;
    while(p==0)
    {
    if('0'<=text[is2]<='9'&&strlen(text[is2])) is2++;
    else
    {
    strmid(strR[r],text,is1,is2,255);
    if(strval(strR[r])<255) r++;
    is1=is2;
    p=1;
    }
    }
    }
    is1++;
    }
    if(r>=4)
    {
    for(new z=0;z<r;z++)
    {
    new pr2;
    while((pr2=strfind(text,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) text[i]='*';
    return 0;
    }
    }
Remember to return 0; at the end of OnPlayerText.

Not tested, found in my old gamemode.


Re: I got a question please tell me - dr.lozer - 27.10.2012

NOw it gives me Error That undefine symbol StR[n] :P