Raised This Month: $27 Target: $400
 6% 

[Request] need help with this


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
darkboss
Member
Join Date: Mar 2020
Location: Street (Homeless)
Old 02-01-2022 , 19:09   [Request] need help with this
Reply With Quote #1

Hello guys, can someone make a plugin like this:

Code:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 15
new g_groupNames[MAX_GROUPS][] = {
"Fondator",
"Owner+V.I.P",
"Owner",
"Co-Owner+V.I.P",
"Co-Owner",
"Veteran+V.I.P",
"Veteran",
"Moderator",
"Administrator",
"Expert",
"Semi-Expert",
"Avansat",
"Incepator",
"V.I.P",
"Slot"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijmnopqrstu",
"abcdefghijmnopqrstu",
"abcdefghijmnopqrtu",
"abcdefghijmnopqrtu",
"abcdefghijmnopqtu",
"abcdefghijmnopqtu",
"bcdefghijmnopqtu",
"bcdefgijmnopqtu",
"bcdefijmnopqtu",
"bcefijmnopqt",
"bcijmnopqt",
"bcimnopqt",
"abtr",
"bz"
}
new g_groupFlagsValue[MAX_GROUPS];
public plugin_init() {
register_plugin("Lista admini (amx_who)", "1.0", "Krond Solutions SRL")
register_concmd("amx_who", "cmdWho", 0);
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id) {
// Verificam daca userul este online, daca nu... ne oprim din executie
if(!is_user_connected(id)) { return PLUGIN_HANDLED; }
new players[32], inum, player, name[32], i, a;
get_players(players, inum);
console_print(id, "===============Realistic===============");
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, "===============Realistic===============")
return PLUGIN_HANDLED
}
i want a plugin that when u write /who, !who in chat to show to everyone a list of admins but in console as in the example above. IDK if exist some like this for cs:go so..
darkboss is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode