Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[respins]Cerere plugin Ap_frefixes.ini
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
310
.13
[Banned user]
Status: Offline
(since 11-03-2017 08:43)
Joined: 30 Sep 2016
Posts: 657
,
Topics: 70
Location:
Romania
Reputation:
2.4
Votes
: 38
Posted: 28-01-2017, 18:09:00
| Translate post to:
... (
Click for more languages
)
Salut ma poate ajuta cine cu un plugins ap_prefixes.ini?
si prefixele sa le schimb eu cum vreau !
As vrea aceste grade:
N1
Co-N1
N2+acces CVAR
N2
N3
HELPER
ADMIN
VIP
Slots
-P!C@-
Te rog unul bun sa nu faca lag la server !
Am cautat pe net dar e decat un prefix decat Owner
eu vreau sa le schimb eu cum le vreau!
ex:
[N1]
Th3^KenT.13
:
text!
Multumesc anticipat!
P.S Dau
REPUTATIE
(20)
Click avatare si semnaturi la jumate de pret!
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: 28-01-2017, 20:26:24
| Translate post to:
... (
Click for more languages
)
Uita-te aici:
click.
Te poti uita si aici:
https://forum.wow-freakz.com/rezolvat-Cerere-Admin-prefix-t343505.html
Topic mutat la cstrike.
0
0
Back to top
.13
[Banned user]
Status: Offline
(since 11-03-2017 08:43)
Joined: 30 Sep 2016
Posts: 657
,
Topics: 70
Location:
Romania
Reputation:
2.4
Votes
: 38
Posted: 29-01-2017, 10:52:25
| Translate post to:
... (
Click for more languages
)
@-P!C@-
Click avatare si semnaturi la jumate de pret!
0
0
Back to top
GoguSM
[.: ZMGO.FREAKZ.RO :.]
Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516
,
Topics: 71
Location:
Brasov
Reputation:
1144
Votes
: 95
Posted: 29-01-2017, 12:52:21
| Translate post to:
... (
Click for more languages
)
Ia vezi asa
Spoiler:
#include <amxmodx>
#include <amxmisc>
enum Color {
NORMAL = 1, GREEN, TEAM_COLOR, GREY, RED, BLUE,
};
new TeamName[][] = {
"", "TERRORIST", "CT", "SPECTATOR"
};
// start cstrike.inc
enum CsTeams {
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
};
native CsTeams:cs_get_user_team(index);
// end cstrike.inc
// edit here
#define MAX_WORDS 192
new g_swearsNames[MAX_WORDS][32]
new g_swearsNum
#define MAX_GROUPS 9
#define MAX_CHARS 48
new g_Rang[MAX_GROUPS][] = {
"N1",
"Co-N1",
"N2+acces CVAR",
"N2",
"N3",
"HELPER",
"ADMIN",
"VIP",
"Slots"
};
new g_RangFlag[MAX_GROUPS][] = {
"abcdefghyijklmnopqrstu",
"abcdefghijklmnopqrstu",
"bcdefghijlmnopqrstu",
"bcdefhijlmnopqrst",
"bcdefhijlmnopqrs",
"bcdefijlmnopqr",
"bcefijmnop",
"bcefijmn",
"bcefij"
};
// end edit here
new g_RangFlag_Value[MAX_GROUPS];
new cvar_type, gType[2][50];
//new chat[180];
public plugin_init() {
register_plugin("RangAdminChat", "1.2", "blabla");
register_clcmd("say","hook_say");
readList()
for(new i = 0; i < MAX_GROUPS; i++)
g_RangFlag_Value[i] = read_flags(g_Rang[i]);
cvar_type = register_cvar("amx_rang_chat","3");
switch(get_pcvar_num(cvar_type)) {
case 1 : {
gType[0] = "^x04*%s*^x03%s^x01 : ^x04%s";
gType[1] = "^x04*%s*^x01(%s)^x03 %s^x01 : ^x04%s";
}
case 2 : {
gType[0] = "^x04(%s)^x03%s^x01 : ^x04%s";
gType[1] = "^x04(%s)^x01(%s)^x03 %s^x01 : ^x04%s";
}
case 3 : {
gType[0] = "^x04[%s]^x03 %s^x01 : ^x04%s";
gType[1] = "^x04[%s]^x01(%s)^x03 %s^x01 : ^x04%s";
}
}
}
readList()
{
// file to read words from
new szCustomDir[64]
new filename[64]
get_configsdir( szCustomDir, 63 )
format(filename, 63, "%s/swear/swearwords.ini", szCustomDir )
if(!file_exists(filename) ){
log_message("Swear Filter: file %s not found", filename)
return
}
new iLen
while( g_swearsNum < MAX_WORDS && read_file(filename, g_swearsNum ,g_swearsNames[g_swearsNum][1],30,iLen) )
{
if( g_swearsNames[g_swearsNum][0] == ';') continue
g_swearsNames[g_swearsNum][0] = iLen
++g_swearsNum
}
log_message("Swear Filter: loaded %d words",g_swearsNum )
}
public hook_say(id) {
if(is_user_bot(id))
return PLUGIN_CONTINUE;
static chat[180]
read_args(chat, sizeof(chat) - 1);
remove_quotes(chat);
if(equali(chat,""))
return PLUGIN_CONTINUE;
if (contain(chat, "%") != -1)
{
replace_all(chat, charsmax(chat), "%", " ")
return PLUGIN_HANDLED
}
new pos, i = 0
while ( i < g_swearsNum )
{
if ( (pos = containi(chat,g_swearsNames[i][1])) != -1 ){
new len = g_swearsNames[i][0]
while(len--)
chat[pos++] = '*'
continue
}
++i
}
if(is_user_admin(id)) {
new bool:hasRang = false;
for(new i = 0; i < MAX_GROUPS; i++) {
if(get_user_flags(id) == read_flags(g_RangFlag[i])) {
switch(cs_get_user_team(id)) {
case CS_TEAM_T : ColorChat(0, RED, gType[0], g_Rang[i], get_name(id), chat);
case CS_TEAM_CT : ColorChat(0, BLUE, gType[0], g_Rang[i], get_name(id), chat);
case CS_TEAM_SPECTATOR : ColorChat(0, GREY, gType[0], g_Rang[i], get_name(id), chat);
}
log_amx("[CHAT] %s : %s", get_name(id), chat)
hasRang = true;
}
}
if(!hasRang)
get_team(id, chat);
}
else
get_team(id, chat);
return PLUGIN_HANDLED;
}
stock get_team(id, chat[]) {
switch(cs_get_user_team(id)) {
case CS_TEAM_T : ColorChat(0, RED, "%s%s [LVL %i]^x01 : %s", is_user_alive(id) ? "" : "*DEAD*", get_name(id), chat);
case CS_TEAM_CT : ColorChat(0, BLUE, "%s%s [LVL %i]^x01 : %s", is_user_alive(id) ? "" : "*DEAD*", get_name(id), chat);
case CS_TEAM_SPECTATOR : ColorChat(0, GREY, "*SPEC*%s [LVL %i]^x01 : %s", get_name(id), chat);
}
log_amx("[CHAT] %s : %s", get_name(id), chat)
}
ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...) {
new message[256];
switch(type) {
case NORMAL: // clients scr_concolor cvar color
{
message[0] = 0x01;
}
case GREEN: // Green
{
message[0] = 0x04;
}
default: // White, Red, Blue
{
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[180] = '^0';
new team, ColorChange, index, MSG_Type;
if(id) {
MSG_Type = MSG_ONE;
index = id;
} else {
index = FindPlayer();
MSG_Type = MSG_ALL;
}
team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);
if(ColorChange) {
Team_Info(index, MSG_Type, TeamName[team]);
}
}
ShowColorMessage(id, type, message[]) {
static bool:saytext_used;
static get_user_msgid_saytext;
if(!saytext_used)
{
get_user_msgid_saytext = get_user_msgid("SayText");
saytext_used = true;
}
message_begin(type, get_user_msgid_saytext, _, id);
write_byte(id);
write_string(message);
message_end();
}
Team_Info(id, type, team[]) {
static bool:teaminfo_used;
static get_user_msgid_teaminfo;
if(!teaminfo_used) {
get_user_msgid_teaminfo = get_user_msgid("TeamInfo");
teaminfo_used = true;
}
message_begin(type, get_user_msgid_teaminfo, _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type) {
switch(Type) {
case RED:
{
return Team_Info(index, type, TeamName[1]);
}
case BLUE:
{
return Team_Info(index, type, TeamName[2]);
}
case GREY:
{
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}
FindPlayer() {
new i = -1;
while(i <= get_maxplayers()) {
if(is_user_connected(++i))
return i;
}
return -1;
}
stock get_name (id) {
new name[32];
get_user_name(id, name, 31);
return name;
}
Editezi aici cu ce flaguri vrei tu
Code:
new g_RangFlag[MAX_GROUPS][] = {
"abcdefghyijklmnopqrstu",
"abcdefghijklmnopqrstu",
"bcdefghijlmnopqrstu",
"bcdefhijlmnopqrst",
"bcdefhijlmnopqrs",
"bcdefijlmnopqr",
"bcefijmnop",
"bcefijmn",
"bcefij"
};
0
0
Back to top
.13
[Banned user]
Status: Offline
(since 11-03-2017 08:43)
Joined: 30 Sep 2016
Posts: 657
,
Topics: 70
Location:
Romania
Reputation:
2.4
Votes
: 38
Posted: 29-01-2017, 14:00:33
| Translate post to:
... (
Click for more languages
)
Mersi o sa incerc si asa!
Click avatare si semnaturi la jumate de pret!
0
0
Back to top
TwisTer
[GOOGLE SEARCHER]
Status: Offline
(since 28-05-2025 19:27)
Joined: 04 May 2007
Posts: 6962
,
Topics: 147
Location:
Romania
Reputation:
2774.4
Votes
: 232
Posted: 30-01-2017, 13:20:57
| Translate post to:
... (
Click for more languages
)
Am zis sa respectati modelul daca vreti sa va ajutam.
Pur si simplu o astfel de cerere fara nici o informatie relevanta, e bataie de joc.
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
TwisTer
, 30 January 2017 11:21
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 21-08-2025, 16:27:34
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