Raised This Month: $ Target: $400
 0% 

Semiclip (There is no name)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-16-2018 , 18:54   Semiclip (There is no name)
Reply With Quote #1

I have a semiclip plugin. And while it is on, I cannot see the names of my teammates. Cannot see name, health or anything of them.

Spoiler
PurposeLessx is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-16-2018 , 19:52   Re: Semiclip (There is no name)
Reply With Quote #2

That is because they are not visible to you
__________________
stuff
maqi is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-17-2018 , 03:59   Re: Semiclip (There is no name)
Reply With Quote #3

How can I show names? It may be hudmessage.
PurposeLessx is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-17-2018 , 11:22   Re: Semiclip (There is no name)
Reply With Quote #4

try get_user_aiming()
__________________
stuff
maqi is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 06-17-2018 , 12:38   Re: Semiclip (There is no name)
Reply With Quote #5

Code:
#include <amxmodx>
#include <cstrike>

new cvar_teaminfo

public plugin_init()
{
    cvar_teaminfo   = register_cvar("amxx_teaminfo","1")

    register_event("StatusValue","status","be","1=2","2!0");
    //register_forward(FM_PlayerPreThink, "status", 0)
}

public status(id)
{
    	new name[32],pid = read_data(2) 
    	get_user_name(pid,name,31)
	new idAiming, iBodyPart
	get_user_aiming(id, idAiming, iBodyPart)
	
	if(is_user_alive(idAiming) && is_user_alive(id) ,get_pcvar_num(cvar_teaminfo)) 
	{
		if(cs_get_user_team(id) == CS_TEAM_CT && cs_get_user_team(idAiming) == CS_TEAM_CT)
		{
			set_hudmessage(238,201,0,-1.0,0.70,1, 0.01, 3.0, 0.01, 0.01, -1)
			show_hudmessage(id, "%s", name)
		}
		else 
		if(cs_get_user_team(id) == CS_TEAM_T && cs_get_user_team(idAiming) == CS_TEAM_T)
		{
			set_hudmessage(238,201,0,-1.0,0.70,1, 0.01, 3.0, 0.01, 0.01, -1)
			show_hudmessage(id, "%s", name)
		}
	}
}

Last edited by raizo11; 06-17-2018 at 12:44.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-17-2018 , 12:41   Re: Semiclip (There is no name)
Reply With Quote #6

if a StatusValue event doesn't get called ( like it doesn't in his case, if i understood it well ). Then this wouldn't work.
__________________
stuff
maqi is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-17-2018 , 12:56   Re: Semiclip (There is no name)
Reply With Quote #7

The plugin which raizo11 posted, does work or doesn't work?

Last edited by PurposeLessx; 06-17-2018 at 12:58.
PurposeLessx is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 06-17-2018 , 13:15   Re: Semiclip (There is no name)
Reply With Quote #8

idk test him
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-17-2018 , 13:20   Re: Semiclip (There is no name)
Reply With Quote #9

Now, i don't have anywhere I can test
PurposeLessx is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-17-2018 , 17:55   Re: Semiclip (There is no name)
Reply With Quote #10

Does not work. Same. There is no name of teammate

Last edited by PurposeLessx; 06-17-2018 at 17:55.
PurposeLessx is offline
Reply



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 04:38.


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