Descriere: este un plugin amx_who facut de mine.
Descarcare:
Nume:amx_who
Versiune: 1.2
Link oficial:-
Instalare:
1. Fisierul amx_who.sma il puneti in addons/amxmodx/scripting
2. Fisierul amx_who.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
amx_who.amxx
INFO:ACEST PLUGIN ESTE FACUT SPECIAL DE MINE PENTRU CEI INCEPATORI !!
EDIT: AM PUS MULTE GRADE STIU CA CATEVA SUNT NEFOLOSITOARE.
1.OFER ASISTENTA TEHNICA PENTRU EL.
INFO: ESTE PRIMUL MEU PLUGIN FACUT :))
[Plugin] amx_who + V.I.P
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- paraParaschiv
- Membru, skill +1
- Posts: 137
- Joined: 12 Jun 2019, 18:06
- Detinator Steam: Da
- CS Status: PuNcT
- Detinator server CS: « ESL.CSPOWER.RO »
- SteamID: Stai LIN !
- Fond eXtream: 0
- Has thanked: 3 times
- Been thanked: 2 times
ESL.CSPOWER.RO
- Laurentiu P.
- Fost moderator
- Posts: 2549
- Joined: 10 Jul 2013, 21:26
- Detinator Steam: Da
- Reputatie: Fost super moderator
- Fond eXtream: 100
- Has thanked: 26 times
- Been thanked: 62 times
- Contact:
Code: Select all
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
console_print(id, "--------------NUME.NUME.RO--------------")
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
Code: Select all
console_print(id, "------------------------ADMINI ONLINE-------------------------------^n--------------NUME.NUME.RO--------------^n------------------------ADMINI ONLINE-------------------------------")
e doar un plugin banal pe care il gasesti pe toate paginile de internet
Mutati-l la cos, ca nu isi are rostu aici.
no...
- LNd #
- Membru, skill +1
- Posts: 126
- Joined: 07 Sep 2017, 23:33
- Detinator Steam: Da
- SteamID: eXeDLL [1337]
- Fond eXtream: 0
- Has thanked: 3 times
- Been thanked: 9 times
chiar daca e mai corect sa apelezi doar o data functia, din punct de vedere vizual se vede urat.. mai ales daca ai multe informatii de pus o sa ajungi sa dai inconjurul lumii cu linia aia.Laurentiu P. wrote: ↑07 Apr 2020, 18:07Code: Select all
console_print(id, "------------------------ADMINI ONLINE-------------------------------") console_print(id, "--------------NUME.NUME.RO--------------") console_print(id, "------------------------ADMINI ONLINE-------------------------------")
cam lungaCode: Select all
console_print(id, "------------------------ADMINI ONLINE-------------------------------^n--------------NUME.NUME.RO--------------^n------------------------ADMINI ONLINE-------------------------------")
e doar un plugin banal pe care il gasesti pe toate paginile de internet
Mutati-l la cos, ca nu isi are rostu aici.
cat despre plugin, aranjarea este foarte prost facuta. incearca sa folosesti taburi pentru spatiere.
Code: Select all
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 23
new g_groupNames[MAX_GROUPS][] =
{
"Detinator Server",
"Fondator + FTP",
"Fondator Server",
"Manager Server",
"Owner + V.I.P",
"Owner",
"Co-Owner + V.I.P",
"Co-Owner",
"Special + V.I.P",
"Special",
"God + V.I.P",
"God",
"Semi-God + V.I.P",
"Semi-God",
"Super-Administrator + V.I.P",
"Super-Administrator",
"Super-Moderator + V.I.P",
"Super-Moderator",
"Domnisoara + V.I.P",
"Moderator",
"Helper",
"V.I.P",
"Slot"
}
new g_groupFlags[MAX_GROUPS][] =
{
"abcdefghijklmnopqrstuvx",
"abcdefghijklmnopqrstuv",
"abcdefghijklmnopqrstv",
"abcdefghijklmnpqrst",
"abcdefghijklmnopqrt",
"bcdefghijklmnopqr",
"abcdefghijklmnopqt",
"bcdefghijklmnopq",
"bcdefhijmnopqt",
"bcdefhijmnopq",
"bcdefijmnopt",
"bcdefijmnop",
"bcdefjinot",
"bcdefjino",
"bcdefjint",
"bcdefjin",
"bcdefjit",
"bcdefji",
"bcdefjitx",
"bcdefis",
"bcefij",
"bit",
"bi"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init()
{
register_plugin("amx_who", "1.2", "paraParaschiv.")
register_concmd("amx_who", "cmdWho", 0)
register_concmd("say who", "cmdWho", 0)
register_concmd("say /who", "cmdWho", 0)
register_concmd("say admin", "cmdWho", 0)
register_concmd("say /admin", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++)
{
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id)
{
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
console_print(id, "--------------NUME.NUME.RO--------------")
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
for(i = 0; i < MAX_GROUPS; i++)
{
console_print(id, "-----[%d]%s-----", i+1, g_groupNames[i])
for(a = 0; a < inum; ++a)
{
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue[i])
{
console_print(id, "%s", name)
}
}
}
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
console_print(id, "--------------NUME.NUME.RO--------------")
console_print(id, "------------------------ADMINI ONLINE-------------------------------")
return PLUGIN_HANDLED;
}
Code: Select all
new name[32]
get_user_name(player, name, 31)
Code: Select all
new name[32]
get_user_name(player, name, charsmax(name))
Last edited by LNd # on 07 Apr 2020, 19:22, edited 1 time in total.
Legends never die
-
- Membru, skill +1
- Posts: 162
- Joined: 28 Dec 2019, 01:39
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
- Been thanked: 7 times
te poti folosi de loop pentru a printa...
Code: Select all
new const g_szConsolePrintMsg[] =
{
"-------------------------------------------------------",
"nume.nume.ro",
"------------------------------------------------------"
};
for(new i; i<sizeof(g_szConsolePrintMsg);i++)
console_print(id, g_szConsolePrintMsg[i]);
Last edited by levin on 10 Apr 2020, 19:24, edited 1 time in total.
Reason: incorect
Reason: incorect