View Single Post
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-30-2020 , 23:22   BaseBuilder PlayerInfo
Reply With Quote #1

Hi i'm looking for a person who can add a lines in my mod, so that we can see the name of the team as soon as you look at the person example if it's CT team you see HUMAN and for the terrorists team it's ZOMBIES
I'm going to post a screen to show you an example.
Im just researching how to add team info when u see players if he is t = zombies or ct = human


(CT)
(T)

PHP Code:
public ev_ShowStatus(id//called when id looks at someone
{
    new 
name[32], pid read_data(2);
    new 
stats[8],bodyhits[8]
    
    
get_user_name(pidname31);
    new 
color1 0color2 0;

    if (
get_user_team(pid) == 1)
        
color1 255;
    else
        
color2 255;

    new 
Float:height=0.35
    
//height=0.60

    
if (g_friend[id] == 1)    // friend
    
{
        new 
clipammowpnid get_user_weapon(pidclipammo);
        new 
wpnname[32];

        if (
wpnid)
            
xmod_get_wpnname(wpnidwpnname31);

        new 
rank get_user_stats(pidstatsbodyhits)
        
set_hudmessage(color150color2, -1.0height10.013.00.010.01);
        
ShowSyncHudMsg(idgHudSyncInfo"%L"LANG_SERVER"PLAYER_INFO1"namerankget_user_health(pid), wpnname);
    } 
    if (
g_friend[id] != 1//enemy
    
{
        new 
rank get_user_stats(pidstatsbodyhits)
        
set_hudmessage(color150color2, -1.0height10.013.00.010.01);
        
ShowSyncHudMsg(idgHudSyncInfo,"%L"LANG_SERVER"PLAYER_INFO2"namerank);
    }

__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-31-2020 at 11:52.
Ace67 is offline