It is currently 22 Jan 2018 19:35






Reply to topic  [ 12 posts ] 
 BUG-FIX [System] 
Author Message
Membru, skill 0
Membru, skill 0
User avatar

Joined: 13 Sep 2017 15:00
Posts: 27
Detinator Steam: Da
CS Status: Respect care ofera respect...
Fond eXtream: 0
BUG-FIX
Descriere:
Am creeat acest plugin ca sa blocheze limbajul vulgar inclusiv reclamele puteti adauga mai multe.
BUG-FIX Apasati click aici :
| Afiseaza codul
/*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Plugin: BUG-FIX
Version: 1.0
Author: sebbyz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*/

#include amxmodx
#include amxmisc
#include colorchat

#define PLUGIN "BUG FIX"
#define VERSION "1.0"
#define AUTHOR "sebbyz"


const MinNameChars = 3;
const MaxNameChars = 30;

new const gBlockcmd[][]= {
"#Cstrike_GIGN_Label",
"#Cstrike_Spetsnaz_Label",
"@ #Cstrike_Spetsnaz_Label",
"Cstrike_G",
"#1Cstike",
"amagad",
"rayish",
"equilibrum",
"4Vendetta",
"mnx",
"****",
"mu.ie",
"****",
"sugi",
"www",
"www.",
".ro",
".com",
".net",
"#",
"*",
"%",
"~",
"`",
":27015",
":27016"
}

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
}

public client_command(id) {
static Cmd[6], Said[100];
read_args(Said,99);
remove_quotes(Said);
read_argv(0,Cmd,5);

if(equali(Cmd,"Say_team",3) && containi(Said,"%")!=-1) {
ColorChat(id, RED, "Suspected for^x04 CMD BUG^x03, your command '^x04percent^x03' has been blocked");
return 1;
}
if(equali(Cmd,"Say_team",3) && containi(Said,"#")!=-1) {
ColorChat(id, RED, "Suspected for^x04 CMD BUG^x03, your command '^x04hashtag^x03' has been blocked");
return 1;
}
if(equali(Cmd,"Say",3) && containi(Said,"%")!=-1) {
ColorChat(id, RED, "Suspected for^x04 CMD BUG^x03, your command '^x04percent^x03' has been blocked");
return 1;
}
if(equali(Cmd,"Say",3) && containi(Said,"#")!=-1) {
ColorChat(id, RED, "Suspected for^x04 CMD BUG^x03, your command '^x04hashtag^x03' has been blocked");
return 1;
}
return PLUGIN_CONTINUE;
}

public client_putinserver(id) {
if(is_user_connected(id)) {
static NewName[32];
static const Name[] = "name";
get_user_info(id,"name",NewName,charsmax(NewName));

// Min/Max characters
if(NewName[0] == '+' || NewName[0] == '#')
set_user_info(id,"name",NewName[1]);

else if(strlen(NewName) < MinNameChars)
kick_user(id, "Your nickname is too short!");

else if(strlen(NewName) > MaxNameChars)
kick_user(id, "Your nickname is too long!");

// Blocked characters
for(new i = 0; i < sizeof(gBlockcmd); i++) {
if(containi(NewName, gBlockcmd[i]) != -1) {
replace_all( NewName, 32, gBlockcmd[i], "");
set_user_info(id, Name, NewName );
}
}
}
return 0;
}

public client_infochanged(id) {
static NewName[32];
static const Name[] = "name";
get_user_info(id,"name",NewName,charsmax(NewName));

// Min/Max characters
if(NewName[0] == '+' || NewName[0] == '#')
set_user_info(id,"name",NewName[1]);

else if(strlen(NewName) < MinNameChars)
kick_user(id, "Your nickname is too short!");

else if(strlen(NewName) > MaxNameChars)
kick_user(id, "Your nickname is too long!");

// Blocked characters
for(new i = 0; i < sizeof(gBlockcmd); i++) {
if(containi(NewName, gBlockcmd[i]) != -1) {
replace_all( NewName, 32, gBlockcmd[i], "" );
set_user_info(id, Name, NewName );
}
}
}

kick_user(id, const szKickMsg[]) {
emessage_begin(MSG_ONE, SVC_DISCONNECT, _, id);
ewrite_string(szKickMsg);
emessage_end();
}

Nume: BUG-FIX
Versiune: 1.0
Autor: sebbyz
Link oficial: http://www.extreamcs.com/forum/

Instalare:
1. Fisierul bugfix.sma il puneti in addons/amxmodx/scripting
2. Fisierul bugfix.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Code:
bugfix.amxx

_________________
BUG-FIX SYSTEM
SpecList
V.I.P Deathrun
ImageImage
ImageImage


Last edited by sebbyz on 14 Sep 2017 14:39, edited 9 times in total.



13 Sep 2017 16:22
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS

Joined: 13 Jul 2013 16:31
Posts: 1321
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Fond eXtream: 0
pune sma direct aici

_________________
TODO : "Xtreme security" - 2% done.

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.


13 Sep 2017 22:22
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 13 Sep 2017 15:00
Posts: 27
Detinator Steam: Da
CS Status: Respect care ofera respect...
Fond eXtream: 0
Gata am modificat ! ! !

_________________
BUG-FIX SYSTEM
SpecList
V.I.P Deathrun
ImageImage
ImageImage


14 Sep 2017 14:40
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS

Joined: 13 Jul 2013 16:31
Posts: 1321
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Fond eXtream: 0
peste tot vad static... nicaieri nu trebuia static
client_command nu e cel mai bine de verificat... ai putea sa fi mai precaut cu resursele ^^

_________________
TODO : "Xtreme security" - 2% done.

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.


14 Sep 2017 23:19
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 13 Sep 2017 15:00
Posts: 27
Detinator Steam: Da
CS Status: Respect care ofera respect...
Fond eXtream: 0
Am inteles dar l-am testat si mi-a functionat

_________________
BUG-FIX SYSTEM
SpecList
V.I.P Deathrun
ImageImage
ImageImage


15 Sep 2017 13:54
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS

Joined: 13 Jul 2013 16:31
Posts: 1321
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Fond eXtream: 0
hehe, nu e vorba doar sa mearga, ideea e sa il faci sa consume cat mai putine resurse si sa nu strice compatibilitatea altor pluginuri ^^

_________________
TODO : "Xtreme security" - 2% done.

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.


15 Sep 2017 15:21
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 13 Sep 2017 15:00
Posts: 27
Detinator Steam: Da
CS Status: Respect care ofera respect...
Fond eXtream: 0
Nu strica nimic.

_________________
BUG-FIX SYSTEM
SpecList
V.I.P Deathrun
ImageImage
ImageImage


16 Sep 2017 13:18
Profile multumesc
Membru, skill +3
Membru, skill +3
User avatar

Joined: 08 Feb 2013 20:43
Posts: 1193
Location: Bucuresti
Detinator Steam: Da
CS Status: HLDS Vulnerability
Detinator server CS: GoldSrc
SteamID: SkillartzHD_hlds
Reputatie: Fost Moderator ajutator
Fond eXtream: 0
Quote:
lient_command nu e cel mai bine de verificat... ai putea sa fi mai precaut cu resursele ^^

of of of...

_________________
Project by HLDS-Project 2017


Static Emulator : Native | Random Emulator : SettiEmu/AVSMP1/AVSMP0/SteamEmu/oldRevEmu/RevEmu is done
KickASS-HLDS v2 (hlds)
KickASS-HLDS v1 (fakedetector)
HL-ClientSteam exploit (pure hlds)
PLCore exploit (dproto&hlds)
FakeConnect 2.0(reunion&rehlds)
KickASS-HLDS v3 in amxx(hlds&rehlds)
...... time passes and evidence are many
Special thanks to Spanwer and Magister
Skype : spyware.spyware1
Steam : Click


18 Sep 2017 20:50
Profile multumesc YIM WWW
Online
Fost moderator
Fost moderator

Joined: 04 Feb 2013 01:31
Posts: 3072
Detinator Steam: Da
Reputatie: Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
Nu ajuta cu nimic un plugin ca altele 100 care nu stie sa faca nimic nou. Vin si scriu pe server w w w. Si am trecut peste anti-reclama ta :-??
Sa nu mai zic ca nu contine fisier.ini pentru adaugare cuvinte si trebuie sa compilezi mereu sursa.
De ce as folosi un plugin care nu-mi lasa un jucator sa intre din cauza numelui scurt sau lung? Sa mai am si setmaster. Pai a doua oara se conecteaza direct pe alt server. Toata lumea foloseste un plugin inteligent precum cel postat de Fantasy, care schimba numele jucatorului in care se gaseste reclama o data cu conectarea. Ce rezolvi daca blochezi ca numele sa nu fie mai mic de 3 caractere?
Faceti ceva nou daca vreti sa faceti. Ne-am plictisit de aceleasi pluginuri.

_________________
Daca nu raspund aici in pm, raspund pe facebook rapid: http://www.facebook.com/TrrrQ

Pasionat de modul furien? Click: diverse/pasionati-modul-furien-click-t350092.html


Last edited by TrrrQ on 12 Jan 2018 19:06, edited 1 time in total.



12 Jan 2018 18:56
Profile multumesc
Membru Club eXtreamCS
Membru Club eXtreamCS
User avatar

Joined: 05 Jan 2016 19:17
Posts: 1647
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (29 Ian - 29 Mar)
-1 avertisment (-2 luni Club)
Fond eXtream: 0
Avertismente: 1 din 3
pentru anti-reclama buna se foloseste replace_all la spatiu, virgule,puncte,paranteze,etc

_________________
JB.INDUNGI.RO #JailBreak Mode
Global.Siders.Ro #Csgo Mode

Ai nevoie de un plugin?
Csgo update pentru cs 1.6


Pluginuri utile(Cs 1.6):
Force Gag


12 Jan 2018 19:03
Profile multumesc YIM WWW
Fost moderator
Fost moderator
User avatar

Joined: 22 Dec 2012 19:37
Posts: 1535
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Fond eXtream: 0
TrrrQ wrote:
Nu ajuta cu nimic un plugin ca altele 100 care nu stie sa faca nimic nou. Vin si scriu pe server w w w. Si am trecut peste anti-reclama ta :-??
Sa nu mai zic ca nu contine fisier.ini pentru adaugare cuvinte si trebuie sa compilezi mereu sursa.
De ce as folosi un plugin care nu-mi lasa un jucator sa intre din cauza numelui scurt sau lung? Sa mai am si setmaster. Pai a doua oara se conecteaza direct pe alt server. Toata lumea foloseste un plugin inteligent precum cel postat de Fantasy, care schimba numele jucatorului in care se gaseste reclama o data cu conectarea. Ce rezolvi daca blochezi ca numele sa nu fie mai mic de 3 caractere?
Faceti ceva nou daca vreti sa faceti. Ne-am plictisit de aceleasi pluginuri.


Pentru chestia cu w w w exista functia trim()

_________________
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.


13 Jan 2018 16:03
Profile multumesc YIM
Online
Fost moderator
Fost moderator

Joined: 04 Feb 2013 01:31
Posts: 3072
Detinator Steam: Da
Reputatie: Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
pui w /w w. sau ex,t,r.ea.am-c,s
părerea mea că ce a făcut el e degeaba

_________________
Daca nu raspund aici in pm, raspund pe facebook rapid: http://www.facebook.com/TrrrQ

Pasionat de modul furien? Click: diverse/pasionati-modul-furien-click-t350092.html


13 Jan 2018 16:14
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group