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

Solved Frag COunter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 05-03-2020 , 16:10   Frag COunter
Reply With Quote #1

Can you help to find this plugin : http://prnt.sc/saaohv

Last edited by lantimilan; 05-04-2020 at 02:31.
lantimilan is offline
Send a message via MSN to lantimilan
thEsp
BANNED
Join Date: Aug 2017
Old 05-03-2020 , 19:21   Re: Frag COunter
Reply With Quote #2

cl_showfps 1
thEsp is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 05-03-2020 , 19:30   Re: Frag COunter
Reply With Quote #3

@thEsp
lol, I think it's "5 (1HS)".
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
lantimilan
Senior Member
Join Date: May 2016
Old 05-04-2020 , 01:47   Re: Frag COunter
Reply With Quote #4

Quote:
Originally Posted by thEsp View Post
cl_showfps 1
Thanks, i mean for KILLS Counter ;)
lantimilan is offline
Send a message via MSN to lantimilan
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-04-2020 , 07:37   Re: Frag COunter
Reply With Quote #5

Code:
#include <amxmodx> #if !defined MAX_PLAYERS const MAX_PLAYERS = 32 #endif #if !defined client_disconnected     #define client_disconnected client_disconnect #endif #define COUNTER_COLOR 0, 255, 0 #define COUNTER_POSITION -1.0, 0.1 const Float:COUNTER_REFRESH = 1.0 enum _:FragInfo { Frags, Headshots } new g_iFrags[MAX_PLAYERS + 1][FragInfo], g_iSyncObj public plugin_init() {     register_plugin("Frag Counter", "1.0", "OciXCrom")     register_event("DeathMsg", "OnPlayerKilled", "a")     g_iSyncObj = CreateHudSyncObj() } public client_putinserver(id) {     g_iFrags[id][Frags] = 0     g_iFrags[id][Headshots] = 0     set_task(COUNTER_REFRESH, "display_frags", id, .flags = "b") } public client_disconnected(id) {     remove_task(id) } public display_frags(id) {     if(is_user_alive(id))     {         set_hudmessage(COUNTER_COLOR, COUNTER_POSITION, .holdtime = COUNTER_REFRESH)         ShowSyncHudMsg(id, g_iSyncObj, "%i (%i HS)", g_iFrags[id][Frags], g_iFrags[id][Headshots])     } } public OnPlayerKilled() {     new iAttacker = read_data(1)     if(is_user_connected(iAttacker) && iAttacker != read_data(2))     {         g_iFrags[iAttacker][Frags]++         if(read_data(3))         {             g_iFrags[iAttacker][Headshots]++         }     } }
__________________

Last edited by OciXCrom; 06-22-2020 at 13:42.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 05-04-2020, 10:50
Ahmad111
This message has been deleted by Ahmad111.
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 03:21.


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