Jump to content
Facebook Twitter Youtube

small help :)


--Alien--
 Share

Recommended Posts

Citat

#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 11
new g_groupNames[MAX_GROUPS][] = {
"Daddy Boss",
"OwneR",
"Co-OwneR",
"God",
"Semi-God",
"Prince",
"Administrator",
"Moderator",
"Helper",
"Medic",
"Slot"

}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrsu",
"abcdefghijmnopqrsu",
"abcdefghijmnopqrs",
"bcdefgijmnpqr",
"bcdefgijmnp",
"bcdefgijmn",
"bcefijmn",
"bcefijm",
"bfijm",
"b"

}
new g_groupFlagsValue[MAX_GROUPS];
public plugin_init() {
register_plugin("Admins List (amx_who)", "2.0", "Team RsX CSBD")
register_concmd("amx_who", "cmdWho", 0);
register_concmd("admin_who", "cmdWho", 0);
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue = read_flags(g_groupFlags)
}
}
public cmdWho(id) {

if(!is_user_connected(id)) { return PLUGIN_HANDLED; }
new players[32], inum, player, name[32], i, a;
get_players(players, inum);
console_print(id, "-----> STAFF CSBD <------");
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "--- [%d] %s ---", i+1, g_groupNames)
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31);
if(get_user_flags(player) == g_groupFlagsValue) {
console_print(id, "  %s", name);
}
}
}
console_print(id, "-----> STAFF CSBD <------")
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

 

 

 

Where is red , u can modify in wich names do you want ! 

Good luck!

  • I love it 3
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

WHO WE ARE?

CsBlackDevil Community [www.csblackdevil.com], a virtual world from May 1, 2012, which continues to grow in the gaming world. CSBD has over 70k members in continuous expansion, coming from different parts of the world.

 

 

Important Links