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

Solved Enemies Left


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 12-31-2018 , 07:20   Enemies Left
Reply With Quote #1

What's the name of this plugin?

10 Terrorists Left
09 Terrorists Left

08 Counter-Terrorists Left
07 Counter-Terrorists Left

Shown Only, When someone Kill !!

If it don't exist can anyone make it? [Enemies Left]

Last edited by Alber9091; 01-02-2019 at 11:43. Reason: Changed topic name and added it into thread.
Alber9091 is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 12-31-2018 , 08:28   Re: What's the name of this Plugin?
Reply With Quote #2

Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <dhudmessage>

public plugin_init() 
{ 
    RegisterHam(Ham_Killed, "player", "PlayerKilled", 1) 
} 

public PlayerKilled(id) 
{ 
    static X[32], Y[32], XNum, YNum 
    get_players(X, XNum, "ae", "TERRORIST") 
    get_players(Y, YNum, "ae", "CT") 

    set_dhudmessage(110, 55, 110, -1.0, 0.70, 1, 0.1, 3.0, 0.1, 2.0, false)
    show_dhudmessage(0, "TERO %d  -  CT %d!", XNum, YNum)
}

Last edited by raizo11; 12-31-2018 at 08:30.
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
E1_531G
Senior Member
Join Date: Dec 2017
Old 12-31-2018 , 10:36   Re: What's the name of this Plugin?
Reply With Quote #3

miscstats.amxx does this.
__________________
My English is A0
E1_531G is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 12-31-2018 , 10:53   Re: What's the name of this Plugin?
Reply With Quote #4

Hy Thanks Alot !!!

But can you fix this? If there are Multiple Kills and Message is not disappeared. It overrides, can't it replace the number instead of changing with Override? And color bit darker? (Just bit darker not much, so noticeable)[Because in Maps like DD2, where there is part of sun shade in map, it becomes less visible !!!]


Last edited by Alber9091; 12-31-2018 at 10:57.
Alber9091 is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 12-31-2018 , 13:16   Re: What's the name of this Plugin?
Reply With Quote #5

Quote:
Originally Posted by E1_531G View Post
miscstats.amxx does this.
Thanks
Alber9091 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 01-01-2019 , 15:30   Re: What's the name of this Plugin?
Reply With Quote #6

Quote:
Originally Posted by Alber9091 View Post
Hy Thanks Alot !!!

But can you fix this? If there are Multiple Kills and Message is not disappeared. It overrides, can't it replace the number instead of changing with Override? And color bit darker? (Just bit darker not much, so noticeable)[Because in Maps like DD2, where there is part of sun shade in map, it becomes less visible !!!]

This happens because of auto-channel option at show_hudmessage() function.
Every new message takes new channel, as result we see this overriding.
If you know how, change above mentioned function to use one static channel.
__________________
My English is A0
E1_531G is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-01-2019 , 18:22   Re: What's the name of this Plugin?
Reply With Quote #7

Quote:
Originally Posted by E1_531G View Post
This happens because of auto-channel option at show_hudmessage() function.
Every new message takes new channel, as result we see this overriding.
If you know how, change above mentioned function to use one static channel.
Use a hud sync object.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 01-02-2019 , 10:25   Re: What's the name of this Plugin?
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Use a hud sync object.
Some What This?
Thanks To eat1k A.K.A w0w

ReAPI + AMXX 1.9.0 + HUD instead of DHUD

PHP Code:
/*
* Author: https://t.me/twisternick
* Request: https://dev-cs.ru/threads/4792/
*/

#include <amxmodx>
#include <amxmisc>
#include <reapi>

#pragma semicolon 1

#define PLUGIN_VERSION "1.0"

/****************************************************************************************
****************************************************************************************/

new g_iSyncMessage;

public 
plugin_init()
{
    
register_plugin("Enemies Left"PLUGIN_VERSION"w0w");

    
RegisterHookChain(RG_CBasePlayer_Killed"refwd_PlayerKilled_Post"true);
    
g_iSyncMessage CreateHudSyncObj();
}

public 
refwd_PlayerKilled_Post()
{
    new 
iTs get_playersnum_ex(GetPlayers_ExcludeDead|GetPlayers_MatchTeam"TERRORIST");
    new 
iCTs get_playersnum_ex(GetPlayers_ExcludeDead|GetPlayers_MatchTeam"CT");

    
set_hudmessage(11055110, -1.00.7010.13.00.12.0, -1);
    
ShowSyncHudMsg(0g_iSyncMessage"Terrorists %d - %d Counter-Terrorists"iTsiCTs);


Last edited by Alber9091; 01-02-2019 at 10:26.
Alber9091 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 05:01.


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