baixei o anticommerce da allied, mais ele nao ta funfando, alguem pode me passar as cvars certinhas pra ele funcionar?
Plugin: http://forums.alliedmods.net/showthread.php?t=79596
cvars:
a
Plugin: http://forums.alliedmods.net/showthread.php?t=79596
cvars:
a
Código:
c_log 0|1 (default 1)
Mean it will create log file (1) with found adverts or not (0).
If ac_log 1 you should create 'advert' folder in logs/ directory.
ac_what2search 0|1|2|3 (default 3)
Define which adverts it should search. Value from list:
0 - nothing (sth like plugin disabled)
1 - only IP`s
2 - only WWW addresses
3 - both
ac_punish 0|1|2 (default 0)
Chose punishment for spammers
0 - warning
1 - kick
2 - ban
ac_bantime <time> (default 1)
If 'ac_punish 2' it define how long player will be banned (in minutes)
ac_punishbyname 0|1 (default 1)
If = 0 plugin doesn`t kick and ban for advert in nick
ac_changename 0|1 (default 1)
If = 1 and ac_punishbyname 1 changes found nick on 'Player' (defined as const)
ac_punishbysay 0|1 (default 1)
If = 0 plugin doesn`t kick and ban for advert in chat messages
ac_banip 0|1 (default 0)
Work when ac_punish 2.
ac_banip 1 will ban user by ip,
ac_banip 0 will ban user by authid.
ac_firstadvert 0|1 (default 1)
If =1 and found first player`s advert plugin set for him ac_punish 0 - only warning to know that this is doesn`t allowed on server. For next adverts use actual cvar value.
No longer ac_flex_pattern 0|1
ac_ips_chars "<chars>" (default [NALPHANUM])
Define list of chars, which can be between bytes of IP to punish. In standard IP it is simple dot (.), but you can punish for other , fe. "12. 12, 12.12". Default value mean: "all not alphanumeric chars". It is single value - don`t add other chars (bad used could make pattern invalid, so it is blocked) to this, create own list of chars. Instead double quote char (") use [q] alias.
Examples:
ac_ips_chars " .,"
ac_ips_chars " .-="
ac_ips_chars " .'[q]"
ac_max_chars <num> (default 3)
Max count of chars from list 'ac_ips_chars' in string. Value 3 mean, that 12...12.12.12 will be punished but 12....12.12.12 will not. Use 0 when want catch all more than 1.
Cmds
register_exception <text>
Add <text> to list of exceptions. For this addresses it won`t punish (allowed addresess).
You can add websites and servers addresses. Plugin automatic add IP of your server.
If you need more than 15 exception slots, change this constant and recompile:
#define MAX_EXC 15
Important: Don`t include 'http://' and 'www' in domains and port in IPs!
showexc
Show in console list of exceptions (only for admins).