View Single Post
Author Message
Skippy
Senior Member
Join Date: Nov 2011
Old 02-18-2013 , 03:30   ShowHudText Help
Reply With Quote #1

I'm trying to get everyone's name in the server to show in the show hud text but it keep showing all of the names in one place. Here is the coding.

PHP Code:
public Action:Command_Huds(clientargs)
{
    
decl String:Buffer[MAX_NAME_LENGTH];
    for(new 
1<= MaxClientsi++)
    {    
        
Format(Buffersizeof(Buffer), "\n%N\n"i);
    
        
SetHudTextParams(0.010.013.0025551240);
        
ShowHudText(client, -1Buffer);
    }    
    return 
Plugin_Handled;

But then if I do this, it works fine.

PHP Code:
public Action:Command_Huds(clientargs)
{
    
SetHudTextParams(0.010.013.0025551240);
    
ShowHudText(client, -1"Hey\nHey2\nHey3\nHey4\nHey5\nHey6);
    
    return Plugin_Handled;

__________________
Plugins:
[Any] Aim Menu

Want a TF2 plugin? Feel free to pm me to discuss it.
Skippy is offline