Raised This Month: $535 Target: $400
 133% 

[Request] need help with this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darkboss
Member
Join Date: Mar 2020
Location: Street (Homeless)
Old 02-01-2022 , 20: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
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-02-2022 , 04:01   Re: [Request] need help with this
Reply With Quote #2

Have you tried SourceMod base plugins command:
sm_who
__________________
Do not Private Message @me
Bacardi is offline
darkboss
Member
Join Date: Mar 2020
Location: Street (Homeless)
Old 02-03-2022 , 06:21   Re: [Request] need help with this
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
Have you tried SourceMod base plugins command:
sm_who
i tryed it show me something else not like how i want
darkboss is offline
Reply


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 19:05.


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