Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Cerere plugin restrictname
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
791
jy0nsS
[Mentally Stable]
Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222
,
Topics: 63
Location:
Romania
Reputation:
75.4
Votes
: 1
Posted: 27-04-2017, 08:56:42
| Translate post to:
... (
Click for more languages
)
Buna dimineata! As dori daca se poate un plugin care sa schimbe numele celor care fac reclama, am incercat cateva plugin-uri de pe net dar imi schimba doar numele celor care au doar .ro sau [RO] sau mai stiu eu ce, eu doresc sa fie schimbat numele daca contine .ro [RO] si asa mai departe, nu doar celor care au tot numele .ro .
Multumesc anticipat !
0
0
Back to top
GoreSpintecatoru.
[Inactiv o perioada]
Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638
,
Topics: 28
Location:
Romania
Reputation:
762.7
Votes
: 40
Posted: 27-04-2017, 09:22:35
| Translate post to:
... (
Click for more languages
)
Salut,
Totusi vreau sa imi faci o lista cu tot ce vrei restrictionat.
Regulament
|
My Official Website[V:1.1]
|
Panel JB[V:1.0]
0
0
Back to top
ZPLegendary
[Mentally Stable]
Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142
,
Topics: 7
Location:
Polovragi, GJ
Reputation:
15.4
Votes
: 17
Posted: 27-04-2017, 10:06:04
| Translate post to:
... (
Click for more languages
)
Poftim
Aici pui numele pe care vrei sa le aiba jucatorii
new const NumeNou[][27] =
{
"NUME JUCATOR ",
"NUME JUCATOR "
}
Spoiler:
Code:
#include <amxmodx>
#include <bitsums>
new const Nume[][] =
{
"(1",
"(2",
"(3",
"(4",
"(5",
"(6",
"(7",
"(8",
"(9",
"(0",
"<warrior",
" player",
"jucator ",
"-player",
"-jucator",
"cs-",
"h!tl",
"0,",
"1,",
"2,",
"4,",
"5,",
"6,",
"7,",
"8,",
"9,",
"???",
"[']ro",
"^^.",
".^^",
"[.]",
"-tb",
"[0",
"[1",
"[2",
"[4",
"[5",
"[6",
"[7",
"[8",
"[9"
}
const g_sizeof_specials = sizeof Nume
new const Nume2[][] =
{
"0.",
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"rcplayer",
"www.",
".com",
".co",
".ro",
".eu",
".net",
".org",
".info",
".ru",
".ee",
":27",
"watf",
"pgl",
"antimat",
"swear",
"leagane",
".ua",
"blackdevil",
"reddevil",
"faradungi",
"empty",
"unnamed",
"unamed",
"heker",
"redemax",
".c0m",
".r0",
"nick",
".biz",
"nume",
"outstanding",
"msplayer",
"alt.nick",
"altn",
"altu",
"reklam",
".ee",
".pt",
".hu",
"ecila",
"advert",
"shit",
"***",
"***",
"bitch",
"hitler",
"***",
"lagger",
"hacker",
"kgb",
"nightwolf",
"hiii",
"Nesnasim",
"WaRr",
"ZOMBIMOD",
"evilz",
"default"
}
const MarimeNume = sizeof Nume2 - 1
new NumeJucator[33][32]
new const NumeNou[][27] =
{
"NUME JUCATOR ",
"NUME JUCATOR "
}
const MarimeNumeNou = sizeof NumeNou - 1
new const FiltreCaractere[] = "~`@#$%%^^&*()-_=+\|[{]};',<>/? "
const MarimeCaractere = sizeof FiltreCaractere - 1
new NumeSchimbat = 1
new IgnoraSchimbarea;
public plugin_init()
register_plugin("Nick Changer", "1.2", "Legendary")
public client_connect(id)
{
if (is_user_bot(id) || get_user_flags(id) & ADMIN_SLAY)
return;
get_user_info(id, "name", NumeJucator[id], charsmax(NumeJucator[]))
verify_name(id)
}
public client_infochanged(id)
{
if (!is_user_connected(id))
return PLUGIN_CONTINUE;
get_user_info(id, "name", NumeJucator[id], charsmax(NumeJucator[]))
if (bitsum_get(IgnoraSchimbarea, id) || is_user_bot(id) || get_user_flags(id) & ADMIN_SLAY)
return PLUGIN_CONTINUE;
if (verify_name(id))
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
verify_name(id)
{
trim(NumeJucator[id])
if (strlen(NumeJucator[id]) < 3)
{
change_name(id)
return true;
}
static i, ignore
ignore = false
for (i = 0; i <= MarimeNumeNou; i++)
if (containi(NumeJucator[id], NumeNou[i]) != -1)
{
ignore = true
break;
}
if (ignore)
return false;
for (i = 0; i < g_sizeof_specials; i++)
if (containi(NumeJucator[id], Nume[i]) != -1)
{
change_name(id)
ignore = true
break;
}
if (ignore)
return true;
FilterChars(NumeJucator[id], NumeJucator[id], charsmax(NumeJucator[]), FiltreCaractere, MarimeCaractere)
for (i = 0; i <= MarimeNume; i++)
if (containi(NumeJucator[id], Nume2[i]) != -1)
{
change_name(id)
break;
}
else if (i == MarimeNume)
ignore = true
return ignore;
}
change_name(id)
{
formatex(NumeJucator[id], charsmax(NumeJucator[]), "%s", NumeNou[random_num(0, MarimeNumeNou)])
formatex(NumeJucator[id], charsmax(NumeJucator[]), "%s[%d]", NumeNou[random_num(0, MarimeNumeNou)], NumeSchimbat)
bitsum_add(IgnoraSchimbarea, id)
ftCmdDir(id, "name ^"%s^"", NumeJucator[id])
ftCmdDir(id, "setinfo name ^"%s^"", NumeJucator[id])
set_user_info(id, "name", NumeJucator[id])
NumeSchimbat++
bitsum_del(IgnoraSchimbarea, id)
}
stock FilterChars(const szString[], szOutput[], iLen, const cChars[], iCharsSize = sizeof cChars)
{
static i, j, k, c, bool:b
i = 0
j = 0
while(i < iLen && j < iLen)
{
c = szString[i]
if(c == '^0')
{
szOutput[j++] = szString[i++]
break
}
b = false
for(k = 0; k < iCharsSize; k++)
{
if(c == cChars[k])
{
i++
b = true
break;
}
}
if(b) continue;
szOutput[j++] = szString[i++]
}
}
stock ftCmdDir(const iID, const szCommands[], any:...)
{
if (iID && !is_user_connected(iID))
return;
static szBuffer[254];
vformat(szBuffer, charsmax(szBuffer), szCommands, 3)
message_begin(iID ? MSG_ONE : MSG_ALL, SVC_DIRECTOR, _, iID);
write_byte(strlen(szBuffer) + 2);
write_byte(10);
write_string(szBuffer);
message_end();
}
Be the one, not anyone.
Currently working on Zombie Legendary 8.1
0
0
Back to top
jy0nsS
[Mentally Stable]
Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222
,
Topics: 63
Location:
Romania
Reputation:
75.4
Votes
: 1
Posted: 27-04-2017, 15:42:07
| Translate post to:
... (
Click for more languages
)
ZPLegendary wrote:
Poftim
Aici pui numele pe care vrei sa le aiba jucatorii
new const NumeNou[][27] =
{
"NUME JUCATOR ",
"NUME JUCATOR "
}
Spoiler:
Code:
#include <amxmodx>
#include <bitsums>
new const Nume[][] =
{
"(1",
"(2",
"(3",
"(4",
"(5",
"(6",
"(7",
"(8",
"(9",
"(0",
"<warrior",
" player",
"jucator ",
"-player",
"-jucator",
"cs-",
"h!tl",
"0,",
"1,",
"2,",
"4,",
"5,",
"6,",
"7,",
"8,",
"9,",
"???",
"[']ro",
"^^.",
".^^",
"[.]",
"-tb",
"[0",
"[1",
"[2",
"[4",
"[5",
"[6",
"[7",
"[8",
"[9"
}
const g_sizeof_specials = sizeof Nume
new const Nume2[][] =
{
"0.",
"1.",
"2.",
"3.",
"4.",
"5.",
"6.",
"7.",
"8.",
"9.",
"rcplayer",
"www.",
".com",
".co",
".ro",
".eu",
".net",
".org",
".info",
".ru",
".ee",
":27",
"watf",
"pgl",
"antimat",
"swear",
"leagane",
".ua",
"blackdevil",
"reddevil",
"faradungi",
"empty",
"unnamed",
"unamed",
"heker",
"redemax",
".c0m",
".r0",
"nick",
".biz",
"nume",
"outstanding",
"msplayer",
"alt.nick",
"altn",
"altu",
"reklam",
".ee",
".pt",
".hu",
"ecila",
"advert",
"shit",
"***",
"***",
"bitch",
"hitler",
"***",
"lagger",
"hacker",
"kgb",
"nightwolf",
"hiii",
"Nesnasim",
"WaRr",
"ZOMBIMOD",
"evilz",
"default"
}
const MarimeNume = sizeof Nume2 - 1
new NumeJucator[33][32]
new const NumeNou[][27] =
{
"NUME JUCATOR ",
"NUME JUCATOR "
}
const MarimeNumeNou = sizeof NumeNou - 1
new const FiltreCaractere[] = "~`@#$%%^^&*()-_=+\|[{]};',<>/? "
const MarimeCaractere = sizeof FiltreCaractere - 1
new NumeSchimbat = 1
new IgnoraSchimbarea;
public plugin_init()
register_plugin("Nick Changer", "1.2", "Legendary")
public client_connect(id)
{
if (is_user_bot(id) || get_user_flags(id) & ADMIN_SLAY)
return;
get_user_info(id, "name", NumeJucator[id], charsmax(NumeJucator[]))
verify_name(id)
}
public client_infochanged(id)
{
if (!is_user_connected(id))
return PLUGIN_CONTINUE;
get_user_info(id, "name", NumeJucator[id], charsmax(NumeJucator[]))
if (bitsum_get(IgnoraSchimbarea, id) || is_user_bot(id) || get_user_flags(id) & ADMIN_SLAY)
return PLUGIN_CONTINUE;
if (verify_name(id))
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
verify_name(id)
{
trim(NumeJucator[id])
if (strlen(NumeJucator[id]) < 3)
{
change_name(id)
return true;
}
static i, ignore
ignore = false
for (i = 0; i <= MarimeNumeNou; i++)
if (containi(NumeJucator[id], NumeNou[i]) != -1)
{
ignore = true
break;
}
if (ignore)
return false;
for (i = 0; i < g_sizeof_specials; i++)
if (containi(NumeJucator[id], Nume[i]) != -1)
{
change_name(id)
ignore = true
break;
}
if (ignore)
return true;
FilterChars(NumeJucator[id], NumeJucator[id], charsmax(NumeJucator[]), FiltreCaractere, MarimeCaractere)
for (i = 0; i <= MarimeNume; i++)
if (containi(NumeJucator[id], Nume2[i]) != -1)
{
change_name(id)
break;
}
else if (i == MarimeNume)
ignore = true
return ignore;
}
change_name(id)
{
formatex(NumeJucator[id], charsmax(NumeJucator[]), "%s", NumeNou[random_num(0, MarimeNumeNou)])
formatex(NumeJucator[id], charsmax(NumeJucator[]), "%s[%d]", NumeNou[random_num(0, MarimeNumeNou)], NumeSchimbat)
bitsum_add(IgnoraSchimbarea, id)
ftCmdDir(id, "name ^"%s^"", NumeJucator[id])
ftCmdDir(id, "setinfo name ^"%s^"", NumeJucator[id])
set_user_info(id, "name", NumeJucator[id])
NumeSchimbat++
bitsum_del(IgnoraSchimbarea, id)
}
stock FilterChars(const szString[], szOutput[], iLen, const cChars[], iCharsSize = sizeof cChars)
{
static i, j, k, c, bool:b
i = 0
j = 0
while(i < iLen && j < iLen)
{
c = szString[i]
if(c == '^0')
{
szOutput[j++] = szString[i++]
break
}
b = false
for(k = 0; k < iCharsSize; k++)
{
if(c == cChars[k])
{
i++
b = true
break;
}
}
if(b) continue;
szOutput[j++] = szString[i++]
}
}
stock ftCmdDir(const iID, const szCommands[], any:...)
{
if (iID && !is_user_connected(iID))
return;
static szBuffer[254];
vformat(szBuffer, charsmax(szBuffer), szCommands, 3)
message_begin(iID ? MSG_ONE : MSG_ALL, SVC_DIRECTOR, _, iID);
write_byte(strlen(szBuffer) + 2);
write_byte(10);
write_string(szBuffer);
message_end();
}
Imi cere libraria bitsums
GoreSpintecatoru. wrote:
Salut,
Totusi vreau sa imi faci o lista cu tot ce vrei restrictionat.
Pai cam orice inseamna reclama, .ro , .net , .com si chestii de genul, cam ce e in plugin-ul dat de ZPLegendary
0
0
Back to top
GoreSpintecatoru.
[Inactiv o perioada]
Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638
,
Topics: 28
Location:
Romania
Reputation:
762.7
Votes
: 40
Posted: 27-04-2017, 15:57:27
| Translate post to:
... (
Click for more languages
)
I-am trimis PM lu Shocker sa bage libraria , acum poti sa compilezi pe
https://amx.freakz.ro
Regulament
|
My Official Website[V:1.1]
|
Panel JB[V:1.0]
1
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: 27-04-2017, 17:29:36
| Translate post to:
... (
Click for more languages
)
Ai aici sma-ul:
http://www.girlshare.ro/3489817852.4
Dupa ce modifici il compilezi pe site-ul de mai sus.
0
0
Back to top
jy0nsS
[Mentally Stable]
Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222
,
Topics: 63
Location:
Romania
Reputation:
75.4
Votes
: 1
Posted: 27-04-2017, 18:04:39
| Translate post to:
... (
Click for more languages
)
Se poate da T/C !
Multumesc frumos !
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
GoreSpintecatoru.
, 27 April 2017 16:21
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 03-03-2025, 15:26:27
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