Need Help - 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: Need Help (
/showthread.php?tid=257952)
Need Help -
Millionaire - 28.05.2011
Hello!
I need a anti server advertise.If a player advertise then it should show like this
**.**.***.**:****.Please help me
Re: Need Help -
HyperZ - 28.05.2011
Put it on OnPlayerText:
pawn Код:
new str[256];
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(str[r],text,is1,is2,255);
if(strval(str[r])<255) r++;
is1 = is2;
p = 1;
}
}
}
is1++;
}
if(r>=4)
{
for(new z=0;z<r;z++)
{
new pr2;
while((pr2=strfind(text,str[z],true))!=-1) for(new i=pr2,j=pr2+strlen(str[z]);i<j;i++) text[i]='*';
}
}
Re: Need Help -
Millionaire - 28.05.2011
i tryed this but it doesnt working
Re : Need Help -
Naruto_Emilio - 28.05.2011
Just Use LuxAdmin script and it will work