User
Pass
2FA
 
 

cerere problem amx_who

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message2597
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 18-07-2018, 19:00:32 | Translate post to: ... (Click for more languages)

Salut va rog daca se poate sami faceeti un plugin amx_who cu gradele si accesele, daca se poate .
as dori asa: cand scriu in chat /admin /who sami apara pe ecran gradele in hud sau cum se numeste
new GroupNames[GROUPS_NAME][] = {
".::Detinator::.",
".::Owner+VIP::.",
".::Owner::.",
".::Co-Owner+VIP::.",
".::Co-Owner::. ",
".::God+VIP::.",
".::God::.",
".::Moderator+VIP::.",
".::Moderator::.",
".::Administrator+VIP::.",
".::Administrator::.",
".::Helper+VIP::.",
".::Helper::.",
".::VIP Gold::.",
".::VIP Silver::."
}

new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijkmnopqrsu",
"abcdefghijkmnopqrst",
"abcdefghijkmnopqrsu",
"abcdefghijkmnopqrst",
"bcdefghijmnopqru",
"bcdefghijmnopqrt",
"bcdefhijmnou",
"bcdefhijmnot",
"bcdefijmnu",
"bcdefijmnt",
"bcefijmu",
"bcefijmt",
"bi",
"bt"

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 18-07-2018, 19:30:47 | Translate post to: ... (Click for more languages)

Incap maxim 10 grade nu 100 intr-un motd de care vrei.

Ori mai scazi din grade si folosesti pluginul asta :

Spoiler:


Ori folosesti pluginul asta unde apar gradele TOATE pe ecran in stanga dar nu intr-un motd,ci apar doar pe ecran unele sub altele (daca testezi o sa vezi)

Spoiler:


In caz ca te hotarasti si mai scazi din grade ca sa modifici faci asa :

#define MAX_GROUPS 15 - aici scoti nr 15 si pui cate grade iti raman (de preferat 10-11)

Si modifici exact ce ai pus tu mai sus ca sa punem,le mai triezi. Daca rezolvi ma anunti.

0 0
  
Back to top
View user's profile Send private message
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 19-07-2018, 18:22:44 | Translate post to: ... (Click for more languages)

Da dar eu am facut asa pentru vip am flagul t si cand dau admin le dau si vip din ccauza flagului ce ar trebui sa fac?
-am facut asa cum tiam aratat unul cu flag t unu fara ..intelegi? daca ma poti ajuta te rog frumos!

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 19-07-2018, 18:46:55 | Translate post to: ... (Click for more languages)

Foloseste al doilea plugin.
0 0
  
Back to top
View user's profile Send private message
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 19-07-2018, 20:03:24 | Translate post to: ... (Click for more languages)

lam compilat dar numi merge...
0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 20-07-2018, 09:19:08 | Translate post to: ... (Click for more languages)

Nu merge compilat sau nu merge pe server ?

EDIT :

Ti l-am compliat eu direct dar ai si sursa in caz ca o sa vrei sa modifici ceva pe viitor.
Download amxx : http://www.girlshare.ro/3490151869.6
Sursa :
Spoiler:

Cel mai clean plugin ar fi asta,scrii in consola admin_who sau amx_who si vezi absolut toate gradele. Ti l-am facut eu cum trebuie. O sa arate asa :


0 0
  
Back to top
View user's profile Send private message
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 24-07-2018, 17:04:43 | Translate post to: ... (Click for more languages)

asa e perfect dar nu mi se activeaza pe sv in plugin.ini am scris amx_who.amxx nu e bine asa?
si daca ai putea la vip gold sami pui acces flag bit si la silver bis te rog mai ajutama cu asta si gata nu te mai zapacesc:)) multumesc foarte mult
si daca ai putea sami dai iarasi descarcarea dupa cel modifici -

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 25-07-2018, 09:49:22 | Translate post to: ... (Click for more languages)

http://www.girlshare.ro/3490154356.7 ---> SMA
http://www.girlshare.ro/3490154358.9 ---> AMXX

Done,sa-mi zici daca ai rezolvat ca sa inchid aici.

0 0
  
Back to top
View user's profile Send private message
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 25-07-2018, 13:14:02 | Translate post to: ... (Click for more languages)

nu-mi merge pe sv ... trebuie un mod sters sau ceva pentru pluginul asta?
si care este codul ce scriu in plugins.ini
si asa ar fi bun cum tiam dat eu akm dar imi apare alb si tot felul de litere in fata w r probeaza si vz unpic doar atat sa modifici la asta culoarea ca deobicei scrie cu verde sau dar dupa cel compilez imi scrie cu alb nici macar daca nu schimbi nik si il compilezi asa cum e dupacea imi scrie cu alb daca poti sal rezolvi asta e ok multumesc .



#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 "Admini 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 esi apasati \y0 \w sau \y5"
#define who_meniu_admin_msg_bottom "^n\wPt a esi apasati \r0 \w sau \r5"
#define who_console_top "=========== Admini Online ==========="
#define who_console_bottom "================================"
new GroupNames[GROUPS_NAME][] = {
"..::*Fondator*::..",
"..::*Owner*::..",
"..::*Owner+VIP*::..",
"..::*Good*::..",
"..::*Good+VIP*::..",
"..::*Moderator*::..",
"..::*moderator+vip*::..",
"..::*Helper*::..",
"..::*VIP/\Gold*::..",
"..::*VIP/\Silver*::.." }
new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijlmnopqrsu",
"bcdefghijlmnopqrtu",
"bcdefghijmnopqr",
"bcdefghijmnopqrt",
"bcdefhijmnop",
"bcdefhijmnot",
"bcdefhijmnor",
"bcdefit",
"bis" }
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, "admin") != -1 || containi(say, "admins") != -1 || contain(say, "/who") != -1 || contain(say, "/admin") != -1 || contain(say, "/admins") != -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, "<meta charset=utf-8><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=^"#33FF00^">%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><font color=^"violet^">%s^n</center></font>", sName)
}
}
}

show_motd(id, sBuffer, motd_msg)
return PLUGIN_CONTINUE
}

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
}

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 26-07-2018, 10:15:00 | Translate post to: ... (Click for more languages)

Baga who_freakz.amxx in folderul plugins.
Deschide plugins.ini din folderul configs si adauga inainte de toate pluginurile asta : who_freakz.amxx

0 0
  
Back to top
View user's profile Send private message
dC?

[Mentally Stable]



Status: Offline
(since 27-08-2018 15:50)
Joined: 18 Jul 2018
Posts: 10, Topics: 4
Location: Romania

Reputation: 7.3

Post Posted: 26-07-2018, 13:26:19 | Translate post to: ... (Click for more languages)

MULTUMESC MULT AM REZOLVAT!
poti da t/c

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by InLoveCs, 26 July 2018 11:56



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 11-05-2024, 09:10:28
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x