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

[CS] Assists [TAB - Kills/Deaths/Assists]


Post New Thread Reply   
 
Thread Tools Display Modes
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 10-27-2012 , 23:16   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #11

Can someone combine this plugin and https://forums.alliedmods.net/showthread.php?t=91360 ?

That will be my love. There is no need to show +Assist. Just plus the assits and show killer + assister (replace killer with it) on top right.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 12-16-2012 , 11:58   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #12

PHP Code:
L 12/16/2012 20:57:39: [AMXXDisplaying debug trace (plugin "assists.amxx")
L 12/16/2012 20:57:39: [AMXXRun time error 4index out of bounds
L 12
/16/2012 20:57:39: [AMXX]    [0assists.sma::fw_takedamage (line 68

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>

const TASK_ARGUMENTS 100

new g_maxplayersg_connected[33], g_offset[33][2], g_argping[33][3]
new 
assists[33]

new 
damage2[33][33//damage[Attacker][Victim]

public plugin_init()
{
    
register_plugin("Assists""0.1"" ")
    
g_maxplayers get_maxplayers()
    
register_clcmd("say /ra""resetassists")
    
register_clcmd("say /resetassists""resetassists")
    
register_event("TextMsg""Event_Restart""a""2&#Game_C""2&#Game_w")
    
register_forward(FM_UpdateClientData"fw_UpdateClientData")
    
// Calculate weird argument values regularly in case we are faking ping fluctuations or a multiple of the real ping
    
set_task(2.0"calculate_arguments"TASK_ARGUMENTS__"b")
    
    
RegisterHam(Ham_TakeDamage"player""fw_takedamage")
    
RegisterHam(Ham_Killed"player""Ham_Killed_player")
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
    
register_event("DeathMsg""player_die""ae")

    
set_task(1.0"deletedmg")
}

public 
Event_Restart() {
    new 
i=0
    
do {
        
assists[i]=0
        i
+=1
    
} while(i<33)
}

public 
Ham_Killed_player(iVictimiAttackershouldgib) {
    new 
i=0
    
do {
        if(
i!=iAttacker) {
            if(
damage2[i][iVictim]>30) {
                
assist(iiVictim)
            }
        }
        
i+=1
    
} while (i<33)
    
}
public 
assist(attackervictim) {
    
damage2[attacker][victim]=0
    assists
[attacker]+=1
    
//set_hudmessage(0, 255, 0, 0.79, 0.24, 0, 6.0, 12.0)
    //show_hudmessage(attacker, "+Assist")
}

public 
fwHamPlayerSpawnPost(iPlayer) {
    new 
i=0
    
do {
        
damage2[iPlayer][i]=0
        i
+=1
    
} while(i<33)
}
public 
fw_takedamage(victiminflictorattackerFloat:damagebits) {
      
damage2[attacker][victim]+=damage
}  
public 
deletedmg(id) {
    new 
i1 0
    
do {
        new 
i2=0
        
do {
            if(
damage2[i1][i2]>0) {
                
damage2[i1][i2]-=1
            
}
            
i2+=1
        
} while (i2<33)
        
i1+=1
    
} while (i1<33)
    
set_task(1.0"deletedmg")
}

public 
resetassists(id) {
    
assists[id]=0
    
return PLUGIN_CONTINUE
}

public 
client_putinserver(id)
{
    
g_connected[id] = true
    assists
[id]+=0
}

public 
client_disconnect(id)
{
    
g_connected[id] = false
    assists
[id]=0
    
new i=0
    
do {
        
damage2[id][i]=0
        i
+=1
    
} while(i<33)
}

public 
fw_UpdateClientData(id)
{
    
// Scoreboard key being pressed?
    
if (!(pev(idpev_button) & IN_SCORE) && !(pev(idpev_oldbuttons) & IN_SCORE))
        return;
    
    
// Send fake player's pings
    
static playersending
    sending 
0
    
for (player 1player <= g_maxplayersplayer++)
    {
        
// Player not in game?
        
if (!g_connected[player])
             continue;
        
        
// Send message with the weird arguments
        
switch (sending)
        {
            case 
0:
            {
                
// Start a new message
                
message_begin(MSG_ONE_UNRELIABLESVC_PINGS_id)
                
write_byte((g_offset[player][0] * 64) + (* (player 1)))
                
write_short(g_argping[player][0])
                
sending++
            }
            case 
1:
            {
                
// Append additional data
                
write_byte((g_offset[player][1] * 128) + (* (player 1)))
                
write_short(g_argping[player][1])
                
sending++
            }
            case 
2:
            {
                
// Append additional data and end message
                
write_byte((* (player 1)))
                
write_short(g_argping[player][2])
                
write_byte(0)
                
message_end()
                
sending 0
            
}
        }
    }
    
    
// End message if not yet sent
    
if (sending)
    {
        
write_byte(0)
        
message_end()
    }
}


// Calculate weird argument values based on target ping
public calculate_arguments()
{
    static 
playerping
    
for (player 1player <= g_maxplayersplayer++)
    {
        
ping assists[player]
        
        
// First argument's ping
        
for (g_offset[player][0] = 0g_offset[player][0] < 4g_offset[player][0]++)
        {
            if ((
ping g_offset[player][0]) % == 0)
            {
                
g_argping[player][0] = (ping g_offset[player][0]) / 4
                
break;
            }
        }
        
// Second argument's ping
        
for (g_offset[player][1] = 0g_offset[player][1] < 2g_offset[player][1]++)
        {
            if ((
ping g_offset[player][1]) % == 0)
            {
                
g_argping[player][1] = (ping g_offset[player][1]) / 2
                
break;
            }
        }
        
// Third argument's ping
        
g_argping[player][2] = ping
    
}


Last edited by Mofforg; 12-17-2012 at 05:28.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
Rirre
Veteran Member
Join Date: Nov 2006
Old 12-16-2012 , 18:55   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #13

Same here.
When any player get hit:
Code:
Run time error 4: index out of bounds
    [0] Assists.sma::fw_takedamage (line 81)
When a player get killed:
Code:
Run time error 4: index out of bounds
    [0] Assists.sma::Ham_Killed_player (line 59)
Rirre is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 08-29-2013 , 14:44   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #14

Could find another way to make this? Like, a person going to the console to write ping is a big time wasting in a game and in most cases will get him kilked if he's alive (except on jb)
Could make like a command like /ping and a menu would appear showing everyone's ping per second.
Thank you
__________________
BLacking98 is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-03-2014 , 23:49   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #15

I Want this plugin thanks for @ANTICHRISTUS he was my guide, i want this plugin without "show assists in tab instead of ping, you can still see ping if you type "ping" in console."
As @Blacking said it's bad.
AMeEeRo is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-15-2014 , 14:23   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #16

I want this plugin without remove ping, i want assists like https://forums.alliedmods.net/showthread.php?t=91360
But https://forums.alliedmods.net/showthread.php?t=91360 has bug remove admins and didn't fix
AMeEeRo is offline
Zellerbach
Junior Member
Join Date: Mar 2017
Old 03-06-2017 , 12:38   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #17

Errorlog:
L 03/06/2017 - 181:44: [AMXX] Invalid Plugin (plugin "Assists.amxx")

Console log:
[ 35] unknown unknown unknown Assists.amxx bad load
( 35) Load fails: Invalid Plugin (plugin "Assists.amxx")

AMXMODX 1.8.3
CS 1.6

description stat pend file vers src load unlod
[ 1] WHBlocker RUN - whblocker_mm_i38 v1.5.626 ini Chlvl ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.548 ini Start Never
[ 3] VoiceTranscoder RUN - vtc.so v80 ini ANY ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-d ini Start ANY
[ 5] POD-Bot mm RUN - podbot_mm_i386.s v3.0B19d ini Chlvl ANY
[ 6] NetBufExtender RUN - nbex.so v1.0 ini ANY Never
[ 7] FakeDetector RUN - fakedetector_mm_ v2.1.3 ini Start Never
[ 8] MySQL RUN - mysql_amxx_i386. v1.8.3-d pl4 ANY ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.8.3-d pl4 ANY ANY
[10] EngineX RUN - engine_amxx_i386 v1.8.1.3 pl4 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-d pl4 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl4 ANY ANY
[13] Orpheu RUN - orpheu_amxx_i386 v2.3 pl4 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl4 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.2 pl4 ANY ANY


some help please? ;-)
Zellerbach is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-06-2017 , 14:50   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #18

Simple. You didn't add the plugin in the plugins folder (or wrote the name wrong) or you didn't compile it with your AMXX's version compiler.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ertgrlars
BANNED
Join Date: Jun 2021
Location: GB
Old 06-18-2021 , 09:40   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #19

Quote:
Originally Posted by RuleBreaker View Post
Assists for Counter Strike 1.6
v2.1
By RuleBreaker




Description:
This plugin show assists in tab instead of ping, you can still see ping if you type "ping" in console.

Commands:
  • say /rs (or /resetscore) - If you already have /rs (/resetscore) plugin it wouldn't reset assists so I added this command so it works on assists too
  • amx_assists_rs - Turn /rs (/resetscore) for assists on/off
  • amx_assists - Turn plugin on/off

Cvars:
  • assists_rs - Turn /rs (/resetscore) for assists on/off

Installation:
  1. Assists.amxx ==> cstrike/addons/amxmodx/plugins
  2. cstrike => addons => amxmodx => configs => plugins.ini
  3. Add new line and write this: "Assists.amxx" (without quotes)

Notes:
  • When you press TAB it still says "Latency", I couldn't change it because it's client side, only way to change it would be slowhacking (not allowed) and even if I did it when player go on toher server it would still say "Assists" instead of "Latency" for him
  • If you have 0 assists it won't say 0 it will be blank
  • Thanks MeRcyLeZZ for source code for editing ping

Screenshots:
  • Spoiler

Changelog:
Version 1.0
  • Initial relase
Version 2.0
  • Added /rs & /resetscore commands
  • Added commands to turn on/of plugin and/or /rs command
  • Fixed detecting assist
  • Added Hud message when you get assist
Version 2.1
  • /resetscore changed to off by default
  • Changed command amx_assists_rs to cvar assists_rs
How do we set the minimum damage?
ertgrlars is offline
Send a message via ICQ to ertgrlars Send a message via AIM to ertgrlars Send a message via Yahoo to ertgrlars Send a message via Skype™ to ertgrlars
Calibru09
Junior Member
Join Date: Jan 2020
Location: Romania
Old 01-31-2023 , 05:16   Re: [CS] Assists [TAB - Kills/Deaths/Assists]
Reply With Quote #20

Quote:
Originally Posted by OciXCrom View Post
Simple. You didn't add the plugin in the plugins folder (or wrote the name wrong) or you didn't compile it with your AMXX's version compiler.
I compiled locally first error is that it requires the dhudmessage.inc ,
Code:
 - build 5390\assists.sma(5) : fatal error 100: cannot read from file: "dhudmessage"
i've added that but after that i receive several errors :

Code:
//  - build 5390\include\dhudmessage.inc(19) : error 021: symbol already defined: "set_dhudmessage"
// - build 5390\include\dhudmessage.inc(24) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(34) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(37) : error 021: symbol already defined: "show_dhudmessage"
//  - build 5390\include\dhudmessage.inc(42) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(44) : warning 218: old style prototypes used with optional semicolumns
//  - build 5390\include\dhudmessage.inc(45) : error 054: unmatched closing brace
//  - build 5390\include\dhudmessage.inc(46) : error 010: invalid function or declaration
// 0 - build 5390\include\dhudmessage.inc(49) : warning 218: old style prototypes used with optional semicolumns
//- build 5390\include\dhudmessage.inc(50) : error 054: unmatched closing brace
//  - build 5390\include\dhudmessage.inc(51) : error 010: invalid function or declaration
// - build 5390\include\dhudmessage.inc(54) : error 021: symbol already defined: "get_players"
//  - build 5390\include\dhudmessage.inc(56) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(58) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(63) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(65) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(67) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(70) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(79) : error 010: invalid function or declaration
// - build 5390\include\dhudmessage.inc(82) : warning 218: old style prototypes used with optional semicolumns
// - build 5390\include\dhudmessage.inc(83) : error 054: unmatched closing brace
// - build 5390\include\dhudmessage.inc(84) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(86) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(90) : error 010: invalid function or declaration
//  - build 5390\include\dhudmessage.inc(95) : error 021: symbol already defined: "vformat"
// - build 5390\include\dhudmessage.inc(96) : warning 218: old style prototypes used with optional semicolumns
//  - build 5390\include\dhudmessage.inc(97) : error 054: unmatched closing brace
// - build 5390\include\dhudmessage.inc(100) : error 021: symbol already defined: "ArrayDestroy"
//  - build 5390\include\dhudmessage.inc(103) : error 010: invalid function or declaration
// - build 5390\include\dhudmessage.inc(106) : error 025: function heading differs from prototype
Is this plugin still legit ? Even it's posted in 2012 i have several plugins from this section that works perfectly

Last edited by Calibru09; 01-31-2023 at 05:17.
Calibru09 is offline
Send a message via AIM to Calibru09 Send a message via Yahoo to Calibru09 Send a message via Skype™ to Calibru09
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 04:21.


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