AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help amx_who (https://forums.alliedmods.net/showthread.php?t=282474)

Senzor 05-07-2016 19:19

Help amx_who
 
Can someone make an amx_who like this in the photo?
http://imgur.com/w3Pk994

EFFx 05-07-2016 19:29

Re: Help amx_who
 
I dont know how to add colors o.O

But i made the format:

PHP Code:

#include <amxmodx>
#include <amxmisc>

#define MAX_GROUPS 13

new g_groupNames[MAX_GROUPS][] = 
{
    
"[1] FONDATOR",
    
"[2] OWNER + VIP",
    
"[3] CO-OWNER + VIP",
    
"[4] GENERAL + VIP",
    
"[5] GENERAL",
    
"[6] VETERAN + VIP",
    
"[7] VETERAN",
    
"[8] MODERATOR + VIP",
    
"[9] MODERATOR",
    
"[10] HELPER + VIP",
    
"[11] HELPER",
    
"[12] VIP",
    
"[13] SLOT"
}


// Add your flags here, the flags that you will add here, you need to add at users.ini 
// for show the player name when a player write amx_who on console
new g_groupFlags[MAX_GROUPS][] = 
{
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
"",
    
""
}

new 
g_groupFlagsValue[MAX_GROUPS]

public 
plugin_init() 
{
    
register_plugin
    
(
    .
plugin_name =    "Amx who"
    .
version =    "1.0"
    .
author =    "EFFx"
    
)
    
    
register_concmd("amx_who""cmdWho")
    
    for(new 
0MAX_GROUPSi++) 
        
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
public 
cmdWho(id
{
    new 
players[32], inumplayername[32], ia
    get_players
(playersinum)
    for(
0MAX_GROUPSi++) 
    {
        
console_print(id"--- %s ---"g_groupNames[i])
        for(
0inum; ++a
        {
            
player players[a]
            
get_user_name(playername31)
            if(
get_user_flags(player) == g_groupFlagsValue[i]) 
            {
                
console_print(id">>> %s"name)
            }
        }
    }
    return 
PLUGIN_HANDLED



Senzor 05-07-2016 19:39

Re: Help amx_who
 
Well i know how to make a normal one :D but i need the one with colors :D ty for trying.

OciXCrom 05-07-2016 20:15

Re: Help amx_who
 
That's pretty much impossible.

Senzor 05-07-2016 20:19

Re: Help amx_who
 
Well it's already made so...i just need to know how

EFFx 05-07-2016 20:21

Re: Help amx_who
 
Quote:

Originally Posted by OciXCrom (Post 2417526)
That's pretty much impossible.

You're right, i dont know how this guy made it.

OciXCrom 05-07-2016 20:35

Re: Help amx_who
 
I doubt that he made it without modifying his game. That can also easily be Photoshop.

EFFx 05-07-2016 21:42

Re: Help amx_who
 
Ban?

fysiks 05-07-2016 22:41

Re: Help amx_who
 
Colors in the console are not possible using anything that is server-side like a plugin.

Quote:

Originally Posted by EFFx (Post 2417536)
Ban?

What the hell are you talking about?

EFFx 05-07-2016 23:01

Re: Help amx_who
 
Quote:

Originally Posted by fysiks (Post 2417541)

What the hell are you talking about?

Nothing, is because my keyboard is a nerd he's writing automatic, i'll kill him sorry for that



¬.¬


All times are GMT -4. The time now is 18:44.

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