Raised This Month: $32 Target: $400
 8% 

glow highlighting top players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
prison
Junior Member
Join Date: Jul 2020
Old 07-03-2020 , 14:14   glow highlighting top players
Reply With Quote #1

Hi
I'm looking for a plugin that would highlight glow top players for ct and tt by frags on the map, ct has its own color and tt has a different color
prison is offline
prison
Junior Member
Join Date: Jul 2020
Old 07-04-2020 , 02:11   Re: glow highlighting top players
Reply With Quote #2

Help pleas
prison is offline
prison
Junior Member
Join Date: Jul 2020
Old 07-04-2020 , 11:38   Re: glow highlighting top players
Reply With Quote #3

please help me find
prison is offline
The RaiD.
Member
Join Date: Jul 2019
Old 07-06-2020 , 02:56   Re: glow highlighting top players
Reply With Quote #4

https://www.extreamcs.com/forum/amxm...ow-t90692.html
The RaiD. is offline
prison
Junior Member
Join Date: Jul 2020
Old 07-06-2020 , 13:38   Re: glow highlighting top players
Reply With Quote #5

Quote:
Originally Posted by The RaiD. View Post
what is it (kRenderNormal, 15) ??? namely the value 15? is it thickness? or saturation?
prison is offline
prison
Junior Member
Join Date: Jul 2020
Old 07-06-2020 , 14:41   Re: glow highlighting top players
Reply With Quote #6

where can I change the lighting time? make it last longer

Code:
/*********************************************************
 * Fisier descarcat de pe www.eXtreamCS.com !            *
 *                                                       *
 *    AMX Mod script                                     *
 * (c) Copyright 2003 <Evil>deadBeat                     *
 * This file is provided as is (no warranties).          *
 *                                                       *
 *                                                       *
 *********************************************************
 */

#include <amxmodx> 
#include <amxmisc>
#include <fun>

new g_Version[] = "1.0";

/* Keep Track of Player ID for Lead Player on each Team */

new g_Lead_CT = -1
new g_Lead_T  = -1

/*
 *********************************************************
 * Find the lead player for each team and make them glow *
 *********************************************************
 */

GlowLeaders() {

	/* Skip the glowing if there's only two people playing */

	new i_numplayers = get_playersnum(0); /* get number of alive players */

	if (i_numplayers < 2) return

	i_numplayers = get_playersnum(1); /* get total number of players, including ones connecting */

	/* Figure out who the Lead Player is for each team */

	new i_Lead_CT_frags  = -100
	new i_Lead_T_frags   = -100
	new i_Lead_CT_deaths = -100
	new i_Lead_T_deaths  = -100
	new s_team[3]
	new i_frags
	new i_deaths

	g_Lead_CT = -1
	g_Lead_T  = -1

	for (new i_player = 0; i_player < i_numplayers; i_player++) {

		i_frags  = get_user_frags(i_player)
		i_deaths = get_user_deaths(i_player)
		
		get_user_team(i_player, s_team, 3)

		/* is player Lead CT? */

		if (equali(s_team,"CT",2))
			if ((i_frags > i_Lead_CT_frags) ||
				((i_frags == i_Lead_CT_frags) && (i_deaths < i_Lead_CT_deaths))) {

				i_Lead_CT_frags  = i_frags
				i_Lead_CT_deaths = i_deaths
				g_Lead_CT        = i_player
			}

		/* is player Lead Terrorist? */

		if (equali(s_team,"TE",2))
			if ((i_frags > i_Lead_T_frags) ||
				((i_frags == i_Lead_T_frags) && (i_deaths < i_Lead_T_deaths))) {

				i_Lead_T_frags  = i_frags
				i_Lead_T_deaths = i_deaths
				g_Lead_T        = i_player
			}
	}

	/* Make the Lead Player Glow for each team */

	if (g_Lead_CT != -1) set_user_rendering(g_Lead_CT, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 15)

	if (g_Lead_T  != -1) set_user_rendering(g_Lead_T,  kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 15)
}

/*
 *********************************************************
 * Turn off glowing for the lead players on each team    *
 *********************************************************
 */

UnGlowLeaders() {

	if (g_Lead_CT != -1) set_user_rendering(g_Lead_CT, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)

	if (g_Lead_T  != -1) set_user_rendering(g_Lead_T,  kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
}

/*
 *********************************************************
 *  Stop Glowing at RoundStart                           *
 *********************************************************
 */

public roundStart()
{
	UnGlowLeaders()
}

/*
 *********************************************************
 *  Start Glowing at RoundEnd                            *
 *********************************************************
 */

public roundEnd()
{
	GlowLeaders()
}

/*
 *********************************************************
 *  Report Glowing
 *********************************************************
 */

public reportGlow(id)
{
}

/*
 *********************************************************
 *  Initialise the Plugin                                *
 *********************************************************
 */

public plugin_init()
{
	register_plugin("LeaderGlow Plugin", g_Version, "<Evil>deadBeat");

	register_logevent("roundStart", 2, "1=Round_Start")
	register_logevent("roundEnd",   2, "1=Round_End")

	register_clcmd("say glow", "reportGlow")
	register_clcmd("say_team glow", "reportGlow")

	return PLUGIN_CONTINUE;
}
prison 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 08:09.


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