Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[REZOLVAT]Cerere Plugin User.INI
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
1545
>[ bK ]< EleCtr0zZz
[Mentally Stable]
Status: Offline
(since 02-05-2018 17:17)
Joined: 12 Apr 2015
Posts: 148
,
Topics: 48
Location:
Romania
Reputation:
-7.4
Votes
: 5
Posted: 10-10-2017, 18:35:48
| Translate post to:
... (
Click for more languages
)
Salut . As dorii si eu un USER.INI + who
Ceva mai nou .. nu doresc "vechituri" adica sa stau sa le editez ca nu merge ceva sau ceva de genu..
Multumesc !
Code:
Fondator
Owner
Co-Owner
Super-Administrator
Administrator
Super-Moderator
Moderator
Helper
V.I.P
SLOT
CONNECT FURY.FREAKZ.RO
CASUTA VOCALA » iknow »
-CONT INACTIV- [ CONT INACTIV ]
0
0
Back to top
x33
[Mentally Stable]
Status: Offline
(since 19-10-2017 05:03)
Joined: 20 Nov 2015
Posts: 28
,
Topics: 11
Location:
localhost
Reputation:
4.9
Posted: 17-10-2017, 03:26:13
| Translate post to:
... (
Click for more languages
)
USER.INI:
Spoiler:
; Utilizatorii fișier de configurare
; Locul de amplasare fișier: $ moddir / addons / amxmodx / configs / users.ini
; Linie care începe cu
; este un comentariu
; Steaguri de acces:
; o - imunitate (nu poate fi dat / baned / slayed / slaped și afectat de alte commmands)
; b - rezervare (se poate alãtura pe sloturile rezervate)
; c - comanda amx_kick
; d - amx_ban si amx_unban comenzi
; e - amx_slay amx_slap și comenzi
; f - Comanda amx_map
; g - comanda amx_cvar (nu toate CVAR vor fi disponibile)
; h - Comanda amx_cfg
; i - amx_chat și alte comenzi de chat
; j - amx_vote și alte comenzi vot
; k - acces la sv_password cvar (prin comanda amx_cvar)
; l - acces la comanda amx_rcon și rcon_password cvar (prin comanda amx_cvar)
; m - Custom Level A (pentru plugin-uri suplimentare)
; n - nivel personalizat B
; o - Custom Level C
; p - nivel personalizat D
; q - nivel personalizat E
; r - nivel personalizat F
; s - nivel personalizat G
; t - nivel personalizat H
; u - accesul la meniu
; Z - utilizator (nu admin)
; steaguri cont
; a - deconectare, pe parolã invalidã
; b - tag clan
; c - aceasta este steamid / wonid
; d - acest lucru este ip
; e - parola nu este verificat (doar nume / ip / steamid necesar)
; k - numele sau tag-ul este sensibil la majuscule. de exemplu: dacã o setați astfel numele de "Ham"
; este protejat și majuscule (steaguri "K" numai), atunci nimeni
; poate folosi numele de "Ham", "HAM", "sunca", etc, dar nu "Ham"
; parola:
; Adauga la autoexec.cfg tau: setinfo _pw "<parola>"
; Schimbarea _pw cu valoarea amx_password_field
; Format de cont admin:
; <nume | ip | steamid> <parola> <steaguri de acces> <cont steaguri>
; Exemple de conturi admin:
; "" "" "abcdefghijklmnopqrstu" "ce"
; "" "" "abcdefghijklmnopqrstu" "de"
; "nume" "parola" "abcdefghijklmnopqrstu" "a"
;_____________________________________________________
; "<<<==-Fondator-==>>>", ""abcdefghijklmnopqrstu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Owner-==>>>","bcdefghijklmnopqrsu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Co-Owner-==>>>", "abcdefijmnopqrsu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Super-Administrator-==>>>","bcdefijmnopqrs",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Administrator-==>>>","bcdefijmnopqr",
;_____________________________________________________
;_____________________________________________________
;"<<<==-Super-Moderator-==>>>>","bcdefijmnopq",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Moderator-==>>>","bcdefijmno",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Helper-==>>>","bceijmno",
;_____________________________________________________
;_____________________________________________________
;"<<<==-V.I.P.-==>>>","ab",
;_____________________________________________________
;_____________________________________________________
; "<<<==-SLOT-==>>>"b
;_____________________________________________________
SMA:
Spoiler:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ULTIMATE WHO"
#define VERSION "1.1"
#define AUTHOR "P.Of.Pw"
#define CharsMax(%1) sizeof %1 - 1
#define time_shower 1.0
#define GROUPS_NAME 10
#define GROUPS_ACCESS 10
#define RRR 255
#define GGG 255
#define BBB 255
#define time_hud 12.0
#define motd_msg "Admin's Online"
#define who_meniu_ad_group_msg "\y-=[Admin's]=- \r-=[Online]=-^n"
#define who_meniu_admin_msg "\y-=[Admin's]=- \w-=[Online]=-^n^n"
#define who_meniu_ad_group_msg_bottom "^n\wPt a iesi apasati \y0 \w sau \y5"
#define who_meniu_admin_msg_bottom "^n\wPt a iesi apasati \r0 \w sau \r5"
#define who_console_top "=========== Admini Online ==========="
#define who_console_bottom "================================"
new GroupNames[GROUPS_NAME][] = {
"<<<==-Founder-==>>>",
"<<<==-Owner-==>>>",
"<<<==-Co-Owner-==>>>",
"<<<==-Super-Administrator-==>>>",
"<<<==-Administrator-==>>>",
"<<<==-Super-Moderator-==>>>>",
"<<<==-Moderator-==>>>",
"<<<==-Helper-==>>>",
"<<<==-V.I.P.-==>>>",
"<<<==-Slot-==>>>"
}
new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"bcdefghijklmnopqrsu",
"abcdefijmnopqrsu",
"bcdefijmnopqrs",
"bcdefijmnopqr",
"bcdefijmnopq",
"bcdefijmno",
"bceijmno",
"ab",
"b"
}
new GroupFlagsValue[GROUPS_NAME]
new who_type, who_typemeniu, who_typtable
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])
register_clcmd("say", "cmdSay")
register_clcmd("say_team", "cmdSay")
who_type = register_cvar("cmd_who","1")
who_typemeniu = register_cvar("who_typemeniu","1")
who_typtable = register_cvar("who_typetable","2")
}
public cmdSay(id)
{
new say[192]
read_args(say,192)
if(( containi(say, "who") != -1 || containi(say, "/who") != -1 || containi(say, "/who") != -1 || contain(say, "/who") != -1 || contain(say, "/who") != -1 || contain(say, "/who") != -1))
set_task(time_shower,"cmdULTMWho",id)
return PLUGIN_CONTINUE
}
public cmdULTMWho(id)
{
switch(get_pcvar_num(who_type))
{
case 1: who_meniu(id)
case 2: who_motd(id)
case 3: who_table(id)
case 4: who_hud(id)
case 5: who_console(id)
}
return 0
}
who_meniu(id)
{
switch(get_pcvar_num(who_typemeniu))
{
case 1: who_meniu_admin_groups(id)
case 2: who_meniu_admin(id)
}
return 0
}
who_meniu_admin_groups(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys
nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"\w%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen, who_meniu_ad_group_msg_bottom)
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}
who_meniu_admin(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys
nLen = format(szMenu[nLen], 255, who_meniu_admin_msg)
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen, who_meniu_admin_msg_bottom)
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}
who_motd(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^">%s^n</font></h5></center>", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName)
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0
}
who_table(id)
{
switch(get_pcvar_num(who_typtable))
{
case 1: table_style_one(id)
case 2: table_style_two(id)
}
return 0
}
table_style_one(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h3><b><font color=^"red^">NUME - ACCES</font></h3></b></center>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h4><font color=^"white^">%s %s^n</font></h4></center>", sName, GroupNames[p_of_pw])
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0
}
table_style_two(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<html><head><title>a</title></head>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<br><br><center><body><table border>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<tr><td><h3><b><font color=^"red^">NUME</td><td></h3></b> <h3><b><font color=^"red^">ACCES</td></h3></font></b></center>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><tr><td><h4><b><font color=^"white^">%s<td></b></h4> <h4><b><font color=^"white^">%s </td></h4></font></b></center>", sName, GroupNames[p_of_pw])
}
}
}
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "</table></body></html>")
show_motd(id, sBuffer, motd_msg)
return 0
}
who_hud(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "=== %s ===^n", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName)
}
}
}
set_hudmessage(RRR, GGG, BBB, 0.02, 0.24, 0, 6.0, time_hud)
show_hudmessage(id, sBuffer)
return 0
}
who_console(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
get_players(sPlayers, iNum)
console_print(id, who_console_top)
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
get_user_name(iPlayer, sName, sizeof sName - 1)
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
console_print(id, "= %d = %s : %s", p_of_pw+1, GroupNames[p_of_pw], sName)
}
}
console_print(id, who_console_bottom)
return 0
}
1
0
Back to top
>[ bK ]< EleCtr0zZz
[Mentally Stable]
Status: Offline
(since 02-05-2018 17:17)
Joined: 12 Apr 2015
Posts: 148
,
Topics: 48
Location:
Romania
Reputation:
-7.4
Votes
: 5
Posted: 17-10-2017, 13:30:48
| Translate post to:
... (
Click for more languages
)
x33 wrote:
USER.INI:
Spoiler:
; Utilizatorii fișier de configurare
; Locul de amplasare fișier: $ moddir / addons / amxmodx / configs / users.ini
; Linie care începe cu
; este un comentariu
; Steaguri de acces:
; o - imunitate (nu poate fi dat / baned / slayed / slaped și afectat de alte commmands)
; b - rezervare (se poate alãtura pe sloturile rezervate)
; c - comanda amx_kick
; d - amx_ban si amx_unban comenzi
; e - amx_slay amx_slap și comenzi
; f - Comanda amx_map
; g - comanda amx_cvar (nu toate CVAR vor fi disponibile)
; h - Comanda amx_cfg
; i - amx_chat și alte comenzi de chat
; j - amx_vote și alte comenzi vot
; k - acces la sv_password cvar (prin comanda amx_cvar)
; l - acces la comanda amx_rcon și rcon_password cvar (prin comanda amx_cvar)
; m - Custom Level A (pentru plugin-uri suplimentare)
; n - nivel personalizat B
; o - Custom Level C
; p - nivel personalizat D
; q - nivel personalizat E
; r - nivel personalizat F
; s - nivel personalizat G
; t - nivel personalizat H
; u - accesul la meniu
; Z - utilizator (nu admin)
; steaguri cont
; a - deconectare, pe parolã invalidã
; b - tag clan
; c - aceasta este steamid / wonid
; d - acest lucru este ip
; e - parola nu este verificat (doar nume / ip / steamid necesar)
; k - numele sau tag-ul este sensibil la majuscule. de exemplu: dacã o setați astfel numele de "Ham"
; este protejat și majuscule (steaguri "K" numai), atunci nimeni
; poate folosi numele de "Ham", "HAM", "sunca", etc, dar nu "Ham"
; parola:
; Adauga la autoexec.cfg tau: setinfo _pw "<parola>"
; Schimbarea _pw cu valoarea amx_password_field
; Format de cont admin:
; <nume | ip | steamid> <parola> <steaguri de acces> <cont steaguri>
; Exemple de conturi admin:
; "" "" "abcdefghijklmnopqrstu" "ce"
; "" "" "abcdefghijklmnopqrstu" "de"
; "nume" "parola" "abcdefghijklmnopqrstu" "a"
;_____________________________________________________
; "<<<==-Fondator-==>>>", ""abcdefghijklmnopqrstu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Owner-==>>>","bcdefghijklmnopqrsu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Co-Owner-==>>>", "abcdefijmnopqrsu",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Super-Administrator-==>>>","bcdefijmnopqrs",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Administrator-==>>>","bcdefijmnopqr",
;_____________________________________________________
;_____________________________________________________
;"<<<==-Super-Moderator-==>>>>","bcdefijmnopq",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Moderator-==>>>","bcdefijmno",
;_____________________________________________________
;_____________________________________________________
; "<<<==-Helper-==>>>","bceijmno",
;_____________________________________________________
;_____________________________________________________
;"<<<==-V.I.P.-==>>>","ab",
;_____________________________________________________
;_____________________________________________________
; "<<<==-SLOT-==>>>"b
;_____________________________________________________
SMA:
Spoiler:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ULTIMATE WHO"
#define VERSION "1.1"
#define AUTHOR "P.Of.Pw"
#define CharsMax(%1) sizeof %1 - 1
#define time_shower 1.0
#define GROUPS_NAME 10
#define GROUPS_ACCESS 10
#define RRR 255
#define GGG 255
#define BBB 255
#define time_hud 12.0
#define motd_msg "Admin's Online"
#define who_meniu_ad_group_msg "\y-=[Admin's]=- \r-=[Online]=-^n"
#define who_meniu_admin_msg "\y-=[Admin's]=- \w-=[Online]=-^n^n"
#define who_meniu_ad_group_msg_bottom "^n\wPt a iesi apasati \y0 \w sau \y5"
#define who_meniu_admin_msg_bottom "^n\wPt a iesi apasati \r0 \w sau \r5"
#define who_console_top "=========== Admini Online ==========="
#define who_console_bottom "================================"
new GroupNames[GROUPS_NAME][] = {
"<<<==-Founder-==>>>",
"<<<==-Owner-==>>>",
"<<<==-Co-Owner-==>>>",
"<<<==-Super-Administrator-==>>>",
"<<<==-Administrator-==>>>",
"<<<==-Super-Moderator-==>>>>",
"<<<==-Moderator-==>>>",
"<<<==-Helper-==>>>",
"<<<==-V.I.P.-==>>>",
"<<<==-Slot-==>>>"
}
new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"bcdefghijklmnopqrsu",
"abcdefijmnopqrsu",
"bcdefijmnopqrs",
"bcdefijmnopqr",
"bcdefijmnopq",
"bcdefijmno",
"bceijmno",
"ab",
"b"
}
new GroupFlagsValue[GROUPS_NAME]
new who_type, who_typemeniu, who_typtable
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])
register_clcmd("say", "cmdSay")
register_clcmd("say_team", "cmdSay")
who_type = register_cvar("cmd_who","1")
who_typemeniu = register_cvar("who_typemeniu","1")
who_typtable = register_cvar("who_typetable","2")
}
public cmdSay(id)
{
new say[192]
read_args(say,192)
if(( containi(say, "who") != -1 || containi(say, "/who") != -1 || containi(say, "/who") != -1 || contain(say, "/who") != -1 || contain(say, "/who") != -1 || contain(say, "/who") != -1))
set_task(time_shower,"cmdULTMWho",id)
return PLUGIN_CONTINUE
}
public cmdULTMWho(id)
{
switch(get_pcvar_num(who_type))
{
case 1: who_meniu(id)
case 2: who_motd(id)
case 3: who_table(id)
case 4: who_hud(id)
case 5: who_console(id)
}
return 0
}
who_meniu(id)
{
switch(get_pcvar_num(who_typemeniu))
{
case 1: who_meniu_admin_groups(id)
case 2: who_meniu_admin(id)
}
return 0
}
who_meniu_admin_groups(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys
nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"\w%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen, who_meniu_ad_group_msg_bottom)
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}
who_meniu_admin(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys
nLen = format(szMenu[nLen], 255, who_meniu_admin_msg)
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen, who_meniu_admin_msg_bottom)
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}
who_motd(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^">%s^n</font></h5></center>", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName)
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0
}
who_table(id)
{
switch(get_pcvar_num(who_typtable))
{
case 1: table_style_one(id)
case 2: table_style_two(id)
}
return 0
}
table_style_one(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h3><b><font color=^"red^">NUME - ACCES</font></h3></b></center>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h4><font color=^"white^">%s %s^n</font></h4></center>", sName, GroupNames[p_of_pw])
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0
}
table_style_two(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<html><head><title>a</title></head>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<br><br><center><body><table border>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<tr><td><h3><b><font color=^"red^">NUME</td><td></h3></b> <h3><b><font color=^"red^">ACCES</td></h3></font></b></center>")
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><tr><td><h4><b><font color=^"white^">%s<td></b></h4> <h4><b><font color=^"white^">%s </td></h4></font></b></center>", sName, GroupNames[p_of_pw])
}
}
}
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "</table></body></html>")
show_motd(id, sBuffer, motd_msg)
return 0
}
who_hud(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen
get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "=== %s ===^n", GroupNames[p_of_pw])
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName)
}
}
}
set_hudmessage(RRR, GGG, BBB, 0.02, 0.24, 0, 6.0, time_hud)
show_hudmessage(id, sBuffer)
return 0
}
who_console(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
get_players(sPlayers, iNum)
console_print(id, who_console_top)
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]
get_user_name(iPlayer, sName, sizeof sName - 1)
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
console_print(id, "= %d = %s : %s", p_of_pw+1, GroupNames[p_of_pw], sName)
}
}
console_print(id, who_console_bottom)
return 0
}
Mersi. Imi poti lasa un PM . ( lasa-mi un mesaj .. pe forum )
CONNECT FURY.FREAKZ.RO
CASUTA VOCALA » iknow »
-CONT INACTIV- [ CONT INACTIV ]
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: 19-10-2017, 15:22:24
| Translate post to:
... (
Click for more languages
)
Rezolvat?
Regulament
|
My Official Website[V:1.1]
|
Panel JB[V:1.0]
0
0
Back to top
>[ bK ]< EleCtr0zZz
[Mentally Stable]
Status: Offline
(since 02-05-2018 17:17)
Joined: 12 Apr 2015
Posts: 148
,
Topics: 48
Location:
Romania
Reputation:
-7.4
Votes
: 5
Posted: 19-10-2017, 17:43:59
| Translate post to:
... (
Click for more languages
)
GoreSpintecatoru. wrote:
Rezolvat?
da
CONNECT FURY.FREAKZ.RO
CASUTA VOCALA » iknow »
-CONT INACTIV- [ CONT INACTIV ]
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
GoreSpintecatoru.
, 19 October 2017 16:04
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 23-04-2024, 15:13:39
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