Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
cerere plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
843
Zpa.Apocalipsa
[Banned user]
Status: Offline
(since 04-01-2016 22:46)
Joined: 15 Dec 2015
Posts: 117
,
Topics: 35
Location:
Barlad
Reputation:
78.5
Votes
: 5
Posted: 04-01-2016, 00:24:15
| Translate post to:
... (
Click for more languages
)
salut as vrea si eu un plugin anti-reclama atunci cand face un jocator reclama la un alt server sau un sige ceva sa ii dea automat ban 120 de minute si sa nu mai apara reclama in chat...multumesc
Casuta Vocala:
>>>
zpa
Zpa.Freakz.Ro
0
0
Back to top
Adryyy
[HLDS EXPLOITER]
Status: Offline
(since 16-09-2024 14:37)
Joined: 09 Apr 2012
Posts: 128
,
Topics: 6
Location:
Romania
Reputation:
117.3
Votes
: 10
Posted: 04-01-2016, 01:23:29
| Translate post to:
... (
Click for more languages
)
Spoiler:
#include <amxmodx>
#include <amxmisc>
new const
PLUGIN[] = "",
VERSION[] = "1.0",
AUTHOR[] = "scosmyn";
#define FileName "words.ini"
#define Reason "aici.pui.motivul.pentru.care.i-ai.dat.ban"
public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say","cmdsay")
register_clcmd("say_team","cmdsay")
_create_file()
}
public _create_file() {
new File[126],FPointer
get_configsdir(File,charsmax(File))
format(File,charsmax(File),"%s/%s",File,FileName)
if(!file_exists(File))
{
FPointer = fopen(File,"w+")
fclose(FPointer)
}
}
public cmdsay(id) {
new szArgs[192]
read_args(szArgs,charsmax(szArgs))
if(IsInFile(szArgs))
{
new name[32]; get_user_name(id,name,charsmax(name))
server_cmd("amx_banip ^"%s^" 120 ^"%s^"",name,Reason)
return 1
}
return 0
}
stock IsInFile(const Args[])
{
new File[126],FileData[256],FPointer
get_configsdir(File,charsmax(File))
format(File,charsmax(File),"%s/%s",File,FileName)
FPointer = fopen(File,"rt")
if(FPointer)
{
while(!feof(FPointer))
{
fgets(FPointer,FileData,charsmax(FileData))
trim(FileData)
if(containi(Args,FileData) != -1)
{
return true
}
}
fclose(FPointer)
}
return false
}
0
0
Back to top
Zpa.Apocalipsa
[Banned user]
Status: Offline
(since 04-01-2016 22:46)
Joined: 15 Dec 2015
Posts: 117
,
Topics: 35
Location:
Barlad
Reputation:
78.5
Votes
: 5
Posted: 04-01-2016, 02:04:26
| Translate post to:
... (
Click for more languages
)
eu vreau sa dea el automat uite am gasit eu ceva pe net numai ca da kick eu vreau sa il lasi sa dea kick dar are si un autogag acolo care as vrea sa fie scos si sa ramana doar partea care tine de reclame la servere uite .sma
Spoiler:
/* Plugin creat de catre uNknow123, va rog nu copiati dreputrile de autor.
* In rest sunteti liberi sa editati ce doriti la el.
*
* Change Log:
* 1.0 - Adaugat sistemul simplu.
* 1.1 - Adaugat sistemul de check name si badWords
*/
#include <amxmodx>
#include <amxmisc>
#include <chat_color>
#include <file>
#define File "Reclama.txt"
#define File2 "Reclama_nume.txt"
#define File3 "BadWords_log.txt"
//#define File4 "Addons/AmxModx/Configs/BadWords.ini"
#define PLUGIN "Anti Reclama"
#define VERSION "1.1"
#define AUTHOR "uNknow123"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","CmdSay")
register_clcmd("say_team","CmdSay")
register_clcmd("say","CmdSay2")
register_clcmd("say_team","CmdSay2")
}
public CmdSay2(id)
{
static say[192], name[33], ip[17], authid[33]
read_args(say, sizeof(say) -1)
get_user_authid(id, authid, sizeof(authid) -1)
get_user_ip(id, ip, sizeof(ip), -1)
get_user_name(id, name, sizeof(name) -1)
if((contain(say, "***") != -1 || contain(say, "****") != -1 || contain(say, "****") != -1 || contain(say, "sugi") != -1 || contain(say, "FuTu") != -1 || contain(say, "MaTa") != -1 || contain(say, "mata") != -1 || contain(say, "futu") != -1 || contain(say, "ma-ta") != -1 || contain(say, "***") != -1 || contain(say, "***") != -1 || contain(say, "***") != -1 || contain(say, "***") != -1 || contain(say, "***") != -1 || contain(say, "***") != -1)) {
new i, players[32], inum
get_players(players, inum)
for(i = 0; i < inum; i++) {
new jucator = id
new admin = players[i]
{
if(admin != jucator && get_user_flags(admin) & ADMIN_CHAT)
{
chat_color(admin, "!y[!gBAD WORDS DETECTOR!y]!gJucatorul %s !y[!gIP:%s!y][!gSTEAM ID:%s!y]", name, ip, authid)
}
log_to_file(File3, "Jucator %s a spus %s avand ip %s si steam id %s", name, say, ip, authid)
chat_color(jucator, "!y[!gBAD WORDS DETECTOR!y]!gAi injurat, mesajul nu a fost trimis in chat")
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_CONTINUE;
}
public client_putinserver(id) {
set_task(2.0, "Name1", id, _, _, "b")
}
public Name1(id) {
new name[33], ip[17], authid[33]
new players[32], count
get_user_name(id, name, charsmax(name))
get_user_ip(id, ip, sizeof(ip) -1, 0)
get_user_authid(id, authid, sizeof(authid) -1)
if(( contain(name, ".ro") != -1 || contain(name, "cs.") != -1 || contain(name, ":27015") != -1 || contain(name, ".RO") != -1 || contain(name, "CS.") != -1 || contain(name, ".Ro") != -1 || contain(name, ".rO") != -1))
{
get_players(players, count)
for(new i = 0; i < count; i++)
if(get_user_flags(players[i]) & ADMIN_CHAT)
{
chat_color(players[i], "!y[!gBAD NAME!y]!gJucatorul !team%s !y(!gIP: %s!y) !y(!gSteam Id: %s !y)", name, ip, authid)
}
log_to_file(File2, "Jucator %s -> nume interzis! IP: %s AUTHID %s", name, ip, authid)
console_print(id, "Ai fost prins cu un nume interzis, vei primi kick!")
server_cmd("kick %s", name)
}
return PLUGIN_HANDLED;
}
public CmdSay(id)
{
static say[193], name[33], ip[17], authid[33]
read_args(say, sizeof(say) -1)
get_user_authid(id, authid, sizeof(authid) -1)
get_user_ip(id, ip, sizeof(ip) -1, 0)
get_user_name(id, name, sizeof(name) -1)
remove_quotes(say)
if(( contain(say, "connect") != -1 || contain(say, ".ro") != -1 || contain(say, ":27015") != -1 || contain(say, ".com") != -1 || contain(say, "cs.") != -1 || contain(say, "rs.") != -1 || contain(say, "492.") != -1 || contain(say, ".net") != -1 || contain(say, "89.") != -1 || contain(say, "49.") != -1 || contain(say, "cs/") != -1 || contain(say, "/ro") != -1 || contain(say, "Free") != -1 || contain(say, "Vand") != -1))
{
new i, players[32], count
get_players(players, count)
for(i = 0; i < count; i++) {
if(get_user_flags(players[i] & ADMIN_CHAT)) {
chat_color(players[i], "!y[!gAnti Reclama!y]!gJucatorul %s !y(!gIP: %s!y) (!gSteam Id: %s!y)!g A incercat sa faca reclama!", name, ip, authid)
chat_color(players[i], "!y[!gRECLAMA!y]!gEl a spus !y%s", say)
}
chat_color(id, "!y[!gDETECTOR DE RECLAME!y]!teamAi facut o reclama. Mesajul nu a fost trimis in chat.")
log_to_file(File, "Jucator %s , ip %s, steam id %s a spus %s", name, ip, authid, say)
server_cmd("kick %s", name)
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE
}
multumesc.
Casuta Vocala:
>>>
zpa
Zpa.Freakz.Ro
0
0
Back to top
Adryyy
[HLDS EXPLOITER]
Status: Offline
(since 16-09-2024 14:37)
Joined: 09 Apr 2012
Posts: 128
,
Topics: 6
Location:
Romania
Reputation:
117.3
Votes
: 10
Posted: 04-01-2016, 14:40:55
| Translate post to:
... (
Click for more languages
)
Spoiler:
/* Plugin creat de catre uNknow123, va rog nu copiati dreputrile de autor.
* In rest sunteti liberi sa editati ce doriti la el.
*
* Change Log:
* 1.0 - Adaugat sistemul simplu.
* 1.1 - Adaugat sistemul de check name si badWords
*/
#include <amxmodx>
#include <amxmisc>
#include <chat_color>
#include <file>
#define File "Reclama.txt"
#define File2 "Reclama_nume.txt"
#define PLUGIN "Anti Reclama"
#define VERSION "1.1"
#define AUTHOR "uNknow123"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","CmdSay")
register_clcmd("say_team","CmdSay")
}
public client_putinserver(id) {
set_task(2.0, "Name1", id, _, _, "b")
}
public Name1(id) {
new name[33], ip[17], authid[33]
new players[32], count
get_user_name(id, name, charsmax(name))
get_user_ip(id, ip, sizeof(ip) -1, 0)
get_user_authid(id, authid, sizeof(authid) -1)
if(( contain(name, ".ro") != -1 || contain(name, "cs.") != -1 || contain(name, ":27015") != -1 || contain(name, ".RO") != -1 || contain(name, "CS.") != -1 || contain(name, ".Ro") != -1 || contain(name, ".rO") != -1))
{
get_players(players, count)
for(new i = 0; i < count; i++)
if(get_user_flags(players[i]) & ADMIN_CHAT)
{
chat_color(players[i], "!y[!gBAD NAME!y]!gJucatorul !team%s !y(!gIP: %s!y) !y(!gSteam Id: %s !y)", name, ip, authid)
}
log_to_file(File2, "Jucator %s -> nume interzis! IP: %s AUTHID %s", name, ip, authid)
console_print(id, "Ai fost prins cu un nume interzis, vei primi kick!")
server_cmd("kick %s", name)
}
return PLUGIN_HANDLED;
}
public CmdSay(id)
{
static say[193], name[33], ip[17], authid[33]
read_args(say, sizeof(say) -1)
get_user_authid(id, authid, sizeof(authid) -1)
get_user_ip(id, ip, sizeof(ip) -1, 0)
get_user_name(id, name, sizeof(name) -1)
remove_quotes(say)
if(( contain(say, "connect") != -1 || contain(say, ".ro") != -1 || contain(say, ":27015") != -1 || contain(say, ".com") != -1 || contain(say, "cs.") != -1 || contain(say, "rs.") != -1 || contain(say, "492.") != -1 || contain(say, ".net") != -1 || contain(say, "89.") != -1 || contain(say, "49.") != -1 || contain(say, "cs/") != -1 || contain(say, "/ro") != -1 || contain(say, "Free") != -1 || contain(say, "Vand") != -1))
{
new i, players[32], count
get_players(players, count)
for(i = 0; i < count; i++) {
if(get_user_flags(players[i] & ADMIN_CHAT)) {
chat_color(players[i], "!y[!gAnti Reclama!y]!gJucatorul %s !y(!gIP: %s!y) (!gSteam Id: %s!y)!g A incercat sa faca reclama!", name, ip, authid)
chat_color(players[i], "!y[!gRECLAMA!y]!gEl a spus !y%s", say)
}
chat_color(id, "!y[!gDETECTOR DE RECLAME!y]!teamAi facut o reclama. Mesajul nu a fost trimis in chat.")
log_to_file(File, "Jucator %s , ip %s, steam id %s a spus %s", name, ip, authid, say)
server_cmd("kick %s", name)
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE
}
0
0
Back to top
Zpa.Apocalipsa
[Banned user]
Status: Offline
(since 04-01-2016 22:46)
Joined: 15 Dec 2015
Posts: 117
,
Topics: 35
Location:
Barlad
Reputation:
78.5
Votes
: 5
Posted: 04-01-2016, 15:03:56
| Translate post to:
... (
Click for more languages
)
problema la compilare
aceasta eroare o pirmeam si inainte de a il modifica tu
Spoiler:
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
Modified for
http://www.Freakz.ro
/ amx.freakz.ro
AntiReclama.sma(11) : fatal error 100: cannot read from file: "chat_color"
Compilation aborted.
1 Error.
Done.
Casuta Vocala:
>>>
zpa
Zpa.Freakz.Ro
0
0
Back to top
-P!C@-
[Simply Normal]
Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086
,
Topics: 1601
Location:
Constanta
Reputation:
1870.3
Votes
: 781
Posted: 05-01-2016, 20:01:46
| Translate post to:
... (
Click for more languages
)
Banned.
Adryyy incearca sa nu mai postezi pentru +1, citeste cu atentie ce se cere, daca nu stii nu te mai baga.
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
-P!C@-
, 05 January 2016 18:01
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 12-12-2024, 08:37:15
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details