Raised This Month: $ Target: $400
 0% 

Change the inscription enemies remaining ... when you kill someone


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MAJESTIC_SZ
Senior Member
Join Date: Mar 2020
Location: Portugal
Old 05-04-2021 , 18:22   Re: Change the inscription enemies remaining ... when you kill someone
Reply With Quote #2

I think i found what you need.

Requirements: ReAPI + AMXX 1.9.0 or Higher

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);

Try it.
Itīs a countdown for every player remaining on both sides.
It is possible to translate to other language as well.
Report if it works.

Last edited by MAJESTIC_SZ; 05-04-2021 at 18:24.
MAJESTIC_SZ is offline
 



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 19:51.


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