Raised This Month: $12 Target: $400
 3% 

BaseBuilder PlayerInfo


Post New Thread Reply   
 
Thread Tools Display Modes
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
Ognjen7
Junior Member
Join Date: Nov 2015
Old 12-31-2020 , 04:06   Re: BaseBuilder PlayerInfo
Reply With Quote #2

You are using variable

Code:
g_friend[id]
Aren't there in BB already variables set for zombie and human ?
Put that here if you want help and I don't know why are you using new one when there are already ones created

If you want it to work like the code you put there I'll make it but it would be better if you just use classic ones within the code already.

Last edited by Ognjen7; 12-31-2020 at 04:06.
Ognjen7 is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-31-2020 , 08:57   Re: BaseBuilder PlayerInfo
Reply With Quote #3

Quote:
Originally Posted by Ognjen7 View Post
You are using variable

Code:
g_friend[id]
Aren't there in BB already variables set for zombie and human ?
Put that here if you want help and I don't know why are you using new one when there are already ones created

If you want it to work like the code you put there I'll make it but it would be better if you just use classic ones within the code already.
I gonna send u my sma of my bb can u edit for what i need ?
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder54.sma - 66 views - 49.2 KB)
__________________
CS:CZ > CS 1.6
Ace67 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 12-31-2020 , 11:37   Re: BaseBuilder PlayerInfo
Reply With Quote #4

basebuilder 54 is a very old version, why dont you download 65? it already has what you've asked for and many more things.
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-31-2020 , 11:45   Re: BaseBuilder PlayerInfo
Reply With Quote #5

Quote:
Originally Posted by Nutu_ View Post
basebuilder 54 is a very old version, why dont you download 65? it already has what you've asked for and many more things.
if i using this version, he is very good, u can look on youtube if u need i post here videos u can look
i have played this version on cs:cz during 7 years "Jhob94 or Anthologie" servers.

Im just researching add team info when u see players if he is t = zombies or ct = human

1. https://www.youtube.com/watch?v=Up9k...nel=JacobAslan
2. https://www.youtube.com/watch?v=OB3r...el=SahinTayfun
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-31-2020 at 11:52.
Ace67 is offline
Ognjen7
Junior Member
Join Date: Nov 2015
Old 01-02-2021 , 05:12   Re: BaseBuilder PlayerInfo
Reply With Quote #6

The guy is right, you should be using BB65 but if you want that one fine.

Also one more thingy because I didn't quite understand you, is this screenshot taken so I make info exactly like that or you just want me to make that it writes for

ZM / > Zombies <
and for
Humans / > Humans < ?

Last edited by Ognjen7; 01-02-2021 at 05:14.
Ognjen7 is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 01-02-2021 , 09:07   Re: BaseBuilder PlayerInfo
Reply With Quote #7

Quote:
Originally Posted by Ognjen7 View Post
The guy is right, you should be using BB65 but if you want that one fine.

Also one more thingy because I didn't quite understand you, is this screenshot taken so I make info exactly like that or you just want me to make that it writes for

ZM / > Zombies <
and for
Humans / > Humans < ?
yes
__________________
CS:CZ > CS 1.6
Ace67 is offline
Ognjen7
Junior Member
Join Date: Nov 2015
Old 01-03-2021 , 07:04   Re: BaseBuilder PlayerInfo
Reply With Quote #8

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(pid, name, 31);
	new color1 = 0, color2 = 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 clip, ammo, wpnid = get_user_weapon(pid, clip, ammo);
		new wpnname[32];

		if (wpnid)
			xmod_get_wpnname(wpnid, wpnname, 31);

		new rank = get_user_stats(pid, stats, bodyhits)
		
		if(g_iszombie[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo, "> ZOMBIE <^n%L", LANG_SERVER, "PLAYER_INFO1", name, rank, get_user_health(pid), wpnname);
		}
		else if(g_ishuman[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo, "> HUMAN <^n%L", LANG_SERVER, "PLAYER_INFO1", name, rank, get_user_health(pid), wpnname);
		}
			
	} 
	if (g_friend[id] != 1) //enemy
	{
		new rank = get_user_stats(pid, stats, bodyhits)
		
		if(g_iszombie[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo,"> ZOMBIE <^n%L", LANG_SERVER, "PLAYER_INFO2", name, rank);
		}
		else if(g_ishuman[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo,"> HUMAN <^n%L", LANG_SERVER, "PLAYER_INFO2", name, rank);
		}
	}
}
I guess this is what you want ?
Just in case I added it in both. If something is wrong let me know.
Ognjen7 is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 01-03-2021 , 13:47   Re: BaseBuilder PlayerInfo
Reply With Quote #9

Quote:
Originally Posted by Ognjen7 View Post
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(pid, name, 31);
	new color1 = 0, color2 = 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 clip, ammo, wpnid = get_user_weapon(pid, clip, ammo);
		new wpnname[32];

		if (wpnid)
			xmod_get_wpnname(wpnid, wpnname, 31);

		new rank = get_user_stats(pid, stats, bodyhits)
		
		if(g_iszombie[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo, "> ZOMBIE <^n%L", LANG_SERVER, "PLAYER_INFO1", name, rank, get_user_health(pid), wpnname);
		}
		else if(g_ishuman[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo, "> HUMAN <^n%L", LANG_SERVER, "PLAYER_INFO1", name, rank, get_user_health(pid), wpnname);
		}
			
	} 
	if (g_friend[id] != 1) //enemy
	{
		new rank = get_user_stats(pid, stats, bodyhits)
		
		if(g_iszombie[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo,"> ZOMBIE <^n%L", LANG_SERVER, "PLAYER_INFO2", name, rank);
		}
		else if(g_ishuman[id])
		{
			set_hudmessage(color1, 50, color2, -1.0, height, 1, 0.01, 3.0, 0.01, 0.01);
			ShowSyncHudMsg(id, gHudSyncInfo,"> HUMAN <^n%L", LANG_SERVER, "PLAYER_INFO2", name, rank);
		}
	}
}
I guess this is what you want ?
Just in case I added it in both. If something is wrong let me know.
Thanks works !
__________________
CS:CZ > CS 1.6
Ace67 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:50.


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