Raised This Month: $ Target: $400
 0% 

Semiclip (There is no name)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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