Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #define PLUGIN "HUD MOD"
- #define VERSION "0.4x"
- #define AUTHOR "eVoLuTiOn +"
- #define MAX_GROUPS 12
- #define MAX_FLAGS 12
- new const g_szWhoGroups[ MAX_GROUPS ][ ] =
- {
- "Detinator",
- "Fondator",
- "Owner + V.I.P",
- "Co-Owner + V.I.P",
- "Co-Owner",
- "Moderator + V.I.P",
- "Moderator",
- "Administrator + V.I.P",
- "Administrator",
- "Helper + V.I.P",
- "Helper",
- "Slot"
- };
- new const g_szWhoFlags[ MAX_FLAGS ][ ] =
- {
- "abcdefghijklmnopqrstuxw",
- "abcdefghijklmnopqrstu",
- "abcdefghijmnoqprstu",
- "abcdefghijmnqprst",
- "abcdefghijmnps",
- "bcdefghijmqrt",
- "bcdefghijm",
- "bcdefijmqrt",
- "bcdefijm",
- "bcfeijqrt",
- "bcfeij",
- "b"
- };
- public plugin_init( ) {
- register_plugin( PLUGIN, VERSION, AUTHOR );
- register_clcmd("say /who", "dr_who");
- }
- public dr_who( id )
- {
- new iPlayers[ 32 ], iCount, iLen, szMotd[ 2048 ]
- get_players( iPlayers, iCount, "ch" );
- iLen = format( szMotd[ iLen ], charsmax(szMotd) - iLen, "\w[\rDr.Evils.Ro\w] \yStaff \rSERVER \w!^n^n" );
- for( new p = 0; p < iCount; p++ )
- {
- static player;
- player = iPlayers[ p ];
- for( new i = 0; i < MAX_FLAGS; i++ )
- {
- if( get_user_flags( player ) == read_flags( g_szWhoFlags[ i ] ) )
- {
- static szName[ 32 ];
- get_user_name( player, szName, sizeof( szName ) -1 );
- iLen += format( szMotd[ iLen ], charsmax(szMotd) - iLen, "\w[\yNUME\w: \r%s\w] \y-> \w[\yGRAD\w: \r%s\w]^n", szName, g_szWhoGroups[ i ] );
- }
- }
- show_menu( id, ( 1 << 1 || 1 << 2 || 1 << 3 || 1 << 4 || 1 << 5 || 1 << 6 || 1 << 7 || 1 << 8 || 1 << 9 || 1 << 0 ), szMotd, -1 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement