User
Pass
2FA
 
 

Ultimate Who(v1.1)
Go to page 1, 2  Next    
 
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 -> Trash
Author Message27026
PoSiTiOn Of PoWeR

[ZP.FREAKZ.RO OWNER]



Status: Offline
(since 07-10-2015 14:51)
Joined: 25 Oct 2008
Posts: 712, Topics: 77
Location: Germany

Reputation: 185.3
Votes: 18

Post Posted: 04-01-2009, 16:52:50 | Translate post to: ... (Click for more languages)

Info : Cu ajutorul acestui plugin jucatori pot vedea admin online pe server intr-un mod nou, voi puteti seta printr-un 'cvar' ca admini sa-i arate
    intr-un meniu ; intr-un motd ; sub forma unui tabel ; mesaj hud ; sau in consola.


Download :
v1.0
v1.1 (fisierul a fost sters)

Autor : PoSiTiOn Of PoWeR
Versiune : 1.1

Instalare :
1. ultimate_who.smail puneti in addons/amxmodx/scripting
2. ultimate_who.amxx il puneti in addons/amxmodx/plugins
3. Intrati in addons/amxmodx/configs/plugins.ini si adaugati jos de tot:
Code:
ultimate_who.amxx


Cvars :
» cmd_who
    1- adminii îi afiseaza intr-un 'meniu'
    2- adminii îi afiseaza într-un 'motd'
    3- adminii îi afiseaza 'sub forma unui tabel'
    4- adminii îi afiseaza într-un 'mesaj hud'
    5- adminii îi afiseaza în 'consola'
    implicit 1


» who_typemeniu
    1- daca pluginul este setat pe cvar-ul "cmd_who 1" si setati 'who_typemeniu 1' admini vor afisati in meniu cu grupe
    2- daca pluginul este setat pe cvar-ul "cmd_who 2" si setati 'who_typemeniu 2' admini vor afisati in meniu fara grupe
    implicit 1


new! » who_typetable
    1 - afiseaza admini in tabel fara acea dunga ('border') (poza)
    2 - afiseaza admini in tabel cu o dunga si mai frumos asezati (poza)
    Implicit 2


Comenzi : in chat:
    /who
    /admin
    /admins
    sau fara "/"


Altele :
modificati cum doriti..
Code:

#define time_shower      1.0 // dupa cat timp sa afiseze admini

#define GROUPS_NAME      4 // nr de grupe ale adminilor
#define GROUPS_ACCESS      4 // nr de accese ale adminilor

#define RRR         255 // culoarea RGB cand afiseaza admini in 'hud'
#define GGG         255 // culoarea RGB cand afiseaza admini in 'hud'
#define BBB         255 // culoarea RGB cand afiseaza admini in 'hud'
#define time_hud      12.0 // timpul cat afiseaza admini in hud

#define motd_msg      "Admin's Online" // mesajele care apare in motd (stanga sus/in colt)

#define who_meniu_ad_group_msg   "\y-=[Admin's]=- \r-=[Online]=-^n" // mesajul care il afiseaza deasupra in meniu (admini+grupe)
#define who_meniu_admin_msg   "\y-=[Admin's]=- \w-=[Online]=-^n^n" // mesajul care il afiseaza deasupra in meniu (admini+fara-grupe)

#define who_meniu_ad_group_msg_bottom   "^n\wPt a esi apasati \y0 \w sau \y5" // mesajul care il afiseaza in meniu sub numele adminilor/grupele lor
#define who_meniu_admin_msg_bottom   "^n\wPt a esi apasati \r0 \w sau \r5" // mesajul care il afiseaza in meniu sub numele adminilor

#define   who_console_top      "=========== Admini Online ===========" // mesajul care il afiseaza in consola deasupra numele adminilor
#define   who_console_bottom    "================================" // mesajul care il afiseaza sub numele adminilor

Code:

// NUMELE ADMINILOR
new GroupNames[GROUPS_NAME][] = {
   "Owners",
   "Moderatori",
   "Administratori",
   "Sloturi"
}

Code:

// ACCESELE ADMINILOR
new GroupFlags[GROUPS_ACCESS][] = {
   "abcdefghijklmnopqrstu",
   "abcdefghijklmnopqrst",
   "bcdefijmnopqrstu",
   "b"
}


»Imagini :
who_meniu(cvar1)
who_meniu(cvar2)

who_motd

who_table(cvar1)
who_table(cvar1)

new! who_table2(cvar2)
new! who_table2(cvar2)

who_hud
who_console


GL & HF !

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

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 07-01-2009, 08:49:26 | Translate post to: ... (Click for more languages)

Arata destul de frumos cum se vede pe hud, good job -

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
Aspi

[Mentally Stable]



Status: Offline
(since 13-01-2012 21:33)
Joined: 21 Feb 2009
Posts: 18, Topics: 2
Location: Romania

Reputation: 272.4
Votes: 4

Post Posted: 21-02-2009, 23:14:43 | Translate post to: ... (Click for more languages)

Shocker wrote:
Arata destul de frumos cum se vede pe hud, good job -

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

[FC OÞELUL GALAÞI]



Status: Offline
(since 27-09-2017 19:00)
Joined: 23 Dec 2006
Posts: 6176, Topics: 326
Location: Galati

Reputation: 331.9
Votes: 98

Post Posted: 22-02-2009, 01:28:24 | Translate post to: ... (Click for more languages)

Nu se scrie "pentru a ieºi ?

Intelligence plus character - that is the goal of true education
dr. Martin Luther King jr.
0 0
  
Back to top
View user's profile Send private message
son1k

[Mentally Stable]



Status: Offline
(since 20-01-2011 10:57)
Joined: 16 Feb 2009
Posts: 52, Topics: 16
Location: Romania

Reputation: 143.1
Votes: 4

Post Posted: 22-02-2009, 21:39:00 | Translate post to: ... (Click for more languages)

PoSiTiOn Of PoWeR poti sa il faci incat sa arate doar MOTD,MENIU,in consola - si arate asea ???


***** ADMINI ONLINE *****
---===Owner's===----
---===God's===---
---====Moderator's===---
---====Administrator's===---
---===Helper's===---
---===Slot's===---
***** ADMINI ONLINE *****

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

[ZP.FREAKZ.RO OWNER]



Status: Offline
(since 07-10-2015 14:51)
Joined: 25 Oct 2008
Posts: 712, Topics: 77
Location: Germany

Reputation: 185.3
Votes: 18

Post Posted: 27-02-2009, 16:31:18 | Translate post to: ... (Click for more languages)

liquidlove18 wrote:
Nu se scrie "pentru a ieºi ?

mam grabit cand am scris, poate modifica oricine aceasta problema gramaticala.

son1k wrote:
PoSiTiOn Of PoWeR poti sa il faci incat sa arate doar MOTD,MENIU,in consola - si arate asea ???[...]

->

Quote:
// NUMELE ADMINILOR
new GroupNames[GROUPS_NAME][] = {
"Owners",
"Moderatori",
"Administratori",
"Sloturi"
}

=====

// ACCESELE ADMINILOR
new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefijmnopqrstu",
"b"
}


EDIT:

deci vei inlocui
Code:
new GroupNames[GROUPS_NAME][] = {
   "Owners",
   "Moderatori",
   "Administratori",
   "Sloturi"
}

si
Code:
#define GROUPS_NAME      4 // nr de grupe ale adminilor


cu
Code:
#define GROUPS_NAME      6 // nr de grupe ale adminilor

si
Code:
new GroupNames[GROUPS_NAME][] = {
"---===Owner's===----",
"---===God's===---",
"---====Moderator's===---",
"---====Administrator's===---",
"---===Helper's===---",
"---===Slot's===--- "
}


si va trebui sa creezi inca 2 acces ptr "God's" si "Helper"

sper ca ai inteles, HF !

0 0
  
Back to top
View user's profile Send private message
padvladz
[Banned user]


Banned


Status: Offline
(since 06-04-2009 18:57)
Joined: 22 Mar 2009
Posts: 7, Topics: None
Location: Romania

Reputation: 85.7
Votes: 4

Post Posted: 22-03-2009, 23:42:33 | Translate post to: ... (Click for more languages)

P.Of.Pw ai putea sa uploadezi din nou v1.0?
0 0
  
Back to top
View user's profile Send private message
catalinutz

[Saint]



Status: Offline
(since 14-10-2021 16:51)
Joined: 05 Aug 2008
Posts: 50, Topics: 8
Location: In your dream!

Reputation: 378.8
Votes: 6

 
Post Posted: 25-03-2009, 20:33:35 | Translate post to: ... (Click for more languages)

v1.1 e mai complexa nitel daca nu ma insel...


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

[Mentally Stable]



Status: Offline
(since 29-03-2009 17:11)
Joined: 21 Mar 2009
Posts: 85, Topics: 3
Location: Freakz.Ro

Reputation: 87.4
Votes: 4

Post Posted: 25-03-2009, 21:01:24 | Translate post to: ... (Click for more languages)

Ii cam tot una v1.0 cu v1.1 is bune amandoua.


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

[ZP.FREAKZ.RO OWNER]



Status: Offline
(since 07-10-2015 14:51)
Joined: 25 Oct 2008
Posts: 712, Topics: 77
Location: Germany

Reputation: 185.3
Votes: 18

Post Posted: 27-03-2009, 19:09:30 | Translate post to: ... (Click for more languages)

v1.1 are un nou stil la tabel
0 0
  
Back to top
View user's profile Send private message
Dottore

[Mentally Stable]



Status: Offline
(since 29-03-2009 17:11)
Joined: 21 Mar 2009
Posts: 85, Topics: 3
Location: Freakz.Ro

Reputation: 87.4
Votes: 4

Post Posted: 27-03-2009, 20:29:00 | Translate post to: ... (Click for more languages)

Are, dar nu te prea avantajeaza.


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

[Mentally Stable]



Status: Offline
(since 08-11-2009 17:28)
Joined: 08 Nov 2009
Posts: 2, Topics: 1
Location: Romania

Reputation: 75.1
Votes: 4

Post Posted: 08-11-2009, 19:28:17 | Translate post to: ... (Click for more languages)

AM INLOCUIT TOTUL DAR TOT NU MERGE -
ARATA CAM ASA !!

COD :

#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 7 // nr de grupe ale adminilor
#define GROUPS_ACCESS 7 // nr de grupe ale adminilor

#define RRR 255
#define GGG 255
#define BBB 255
#define time_hud 12.0

#define motd_msg "Admini online pe JusTx"

#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][] = {
"Owner",
"God`z",
"Semi-God`z",
"Moderatori",
"Administratori",
"Helperi",
"Sloturi",
}

new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijklmnopqrst"
"bcdefijmnopqrstu",
"bcdefj",
"bef",
"be",
}

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, "<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

VA ROG AJUTATI-MA - [-o<Praying

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

[Very Important Person]



Status: Offline
(since 13-11-2022 20:08)
Joined: 10 Jan 2009
Posts: 9642, Topics: 235
Location: Aiki Seishin

Reputation: 3379.5
Votes: 387

 
Post Posted: 08-11-2009, 20:11:03 | Translate post to: ... (Click for more languages)

e frumos pluginul. numai ca am o mica problema si vreau sa fie rezolvata si recompilat pluginul -
Code:
"^n\wPt a esi apasati \r0 \w sau \r5"

pentru numele lu' gaia!! se scrie a iesi -


If my message was helpful, feel free to +rep me. Thanx

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

[Mentally Stable]



Status: Offline
(since 21-12-2011 17:41)
Joined: 01 Nov 2009
Posts: 270, Topics: 105
Location: Timisoara

Reputation: 141.6
Votes: 12

Post Posted: 08-11-2009, 20:54:16 | Translate post to: ... (Click for more languages)

fain pluginu bv

Respecta si vei fi respectat
Respect:Shocker & SpawN
Idoli mei - :Shocker & SpawN



SK|PGLzone!Welcome 2 zm.freakz.ro!

0 0
  
Back to top
View user's profile Send private message
PrOoF[u]

[Mentally Stable]



Status: Offline
(since 09-12-2010 09:04)
Joined: 16 Dec 2009
Posts: 19, Topics: 4
Location: Romania

Reputation: 131.4
Votes: 4

Post Posted: 19-12-2009, 04:11:08 | Translate post to: ... (Click for more languages)

Intrebare:

Deci imi place pluginul super mult, cel mai mult imi place cum apare in consola dar... nu poti s-al faci pe cel din consola sa mearga si prin comanda amx_who nu doar cele din chat? Eu m-am uitat ca "broasca la sudura" 2 h in el, l-am pus chiar langa un amx_who normal dar deh.. nu ma duce capu' -

Deci in final , se poate pune si comanda amx_who in consola ca cel vechi?

Multumesc!

saLz aLl!

0 0
  
Back to top
View user's profile Send private message
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 -> Trash  
Go to page 1, 2  Next    


The time now is 14-12-2024, 11:34:33
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