AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Request] need help with this (https://forums.alliedmods.net/showthread.php?t=336182)

darkboss 02-01-2022 19:09

[Request] need help with this
 
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..

Bacardi 02-02-2022 03:01

Re: [Request] need help with this
 
Have you tried SourceMod base plugins command:
sm_who

darkboss 02-03-2022 05:21

Re: [Request] need help with this
 
Quote:

Originally Posted by Bacardi (Post 2770275)
Have you tried SourceMod base plugins command:
sm_who

i tryed it show me something else not like how i want


All times are GMT -4. The time now is 00:25.

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