SA-MP Forums Archive
anti adv problem - 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: anti adv problem (/showthread.php?tid=576760)



anti adv problem - SNAKE12 - 06.06.2015

hey samp forum iam making anti adv but how when player type adv in main chat to stop message (i wont kick/ban them only that he cannt send this massege)?


Re: anti adv problem - suni - 06.06.2015

i'd like to send you my anti ads fs i made but it kick the player so the ads wont be send to the mainchat.


Re: anti adv problem - Evocator - 06.06.2015

return 0


Re: anti adv problem - Alpay0098 - 06.06.2015

As Ralfie said: (This code goes below OnPlayerText)
PHP код:
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
    {
        
SendClientMessage(playerid0xFFFFFFFF"* You only can send message every 2 seconds.");
        return 
0;
    } 
You can define IsPlayerFlooding (I think you're done with this ...) in advance.


Re: anti adv problem - Konverse - 06.06.2015

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
As Ralfie said: (This code goes below OnPlayerText)
PHP код:
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
    {
        
SendClientMessage(playerid0xFFFFFFFF"* You only can send message every 2 seconds.");
        return 
0;
    } 
You can define IsPlayerFlooding (I think you're done with this ...) in advance.
This is an anti spam protection. There should be a limit in the text on the server you're managing.


Re: anti adv problem - Alpay0098 - 06.06.2015

Quote:
Originally Posted by Konverse
Посмотреть сообщение
This is an anti spam protection. There should be a limit in the text on the server you're managing.
He asked to block these guys who advetise and he said I don't have any prob in advertising section. he asked for blocking these guys, I answered his question. He just can change IsPlayerFlooding to IsPlayerAdverting.
Why so serious?