Anti server advertise(not working) - 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 server advertise(not working) (
/showthread.php?tid=227622)
Anti server advertise(not working) -
darkknight123 - 17.02.2011
this is what i have
Код:
public OnPlayerText(playerid, text[])
{
new ip[15];
if(ipmatch(text, ip))
{
SendClientMessage(playerid, COLOR_RED, "Server Advertiseing is not allowed!");
return 1;
}
for my anti server advertise this is for normal chat but when the player says the ip it still shows how would i replace what he says with something like "*" or "#" something to block out what they said?
Re: Anti server advertise(not working) -
Krx17 - 17.02.2011
Change return 1 to return 0.
Re: Anti server advertise(not working) -
Antonio [G-RP] - 17.02.2011
for(new i=0; i<strlen(text); i++)
{
something like that.