Anti-Advertisement issue
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Separate the whole block into a separate function and then feed playerid and text into the new function. Place function where necessary.
That's what I've had an issue doing, I don't know how to separate it where it'll work that way so if they type in /b, or /f or /pm with the IP that it will check it, and take the action accordingly

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
This function doesn't make any sense in OnPlayerCommandText. You should check if player is trying send IP number through certain commands, for instance private message or announce commands or any other commands that are sending messages to the player(s).

Your way of doing it is wrong. Also, what would happen if I join the server and text in the chat "Oh, the number is 9912... dummy.."

I think it's going to ban me. Either way it is too rough to ban player, since you might have some false positives, so you should kick them out instead.

edit:// @Vince,
You got me first, damn antispam number count.
No, I've tested, it won't do that. But I do not know how to separate it into a command, that too being my issue.
Reply


Messages In This Thread
Anti-Advertisement issue - by Jhero - 17.01.2016, 10:14
Re: Anti-Advertisement issue - by Vince - 17.01.2016, 10:18
Re: Anti-Advertisement issue - by Riddick94 - 17.01.2016, 10:20
Re: Anti-Advertisement issue - by Jhero - 17.01.2016, 10:27
Re: Anti-Advertisement issue - by Riddick94 - 17.01.2016, 10:30
Re: Anti-Advertisement issue - by Jhero - 17.01.2016, 10:30
Re: Anti-Advertisement issue - by Jhero - 17.01.2016, 10:37
Re: Anti-Advertisement issue - by AmigaBlizzard - 17.01.2016, 15:17
Re: Anti-Advertisement issue - by SickAttack - 17.01.2016, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)