It is currently 17 Nov 2017 22:20






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

Joined: 13 Sep 2017 15:00
Posts: 26
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: 1293
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Fond eXtream: 0
pune sma direct aici

_________________
Dr.FioriGinal.Ro - Deathrun classic 700 gravity.

amxmodx/rom-protect-anti-flood-bug-fix-open-source-t289324.html - Plugin de protectie adevarat cu sursa si toate cele.


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: 26
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: 1293
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 ^^

_________________
Dr.FioriGinal.Ro - Deathrun classic 700 gravity.

amxmodx/rom-protect-anti-flood-bug-fix-open-source-t289324.html - Plugin de protectie adevarat cu sursa si toate cele.


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: 26
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: 1293
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 ^^

_________________
Dr.FioriGinal.Ro - Deathrun classic 700 gravity.

amxmodx/rom-protect-anti-flood-bug-fix-open-source-t289324.html - Plugin de protectie adevarat cu sursa si toate cele.


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: 26
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: 1186
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
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 25 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