anti adv problem
#1

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)?
Reply
#2

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.
Reply
#3

return 0
Reply
#4

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.
Reply
#5

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.
Reply
#6

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)