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

Death Sprite Effect (like CSO)


Post New Thread Reply   
 
Thread Tools Display Modes
csaba1998
Member
Join Date: Mar 2013
Old 09-16-2013 , 10:29   Re: Death Sprite Effect (like CSO)
Reply With Quote #61

Pls trash, I'm not support this plugin
csaba1998 is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-16-2013 , 18:10   Re: Death Sprite Effect (like CSO)
Reply With Quote #62

Unnaproved/Old ?
__________________
BLacking98 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-20-2013 , 18:29   Re: Death Sprite Effect (like CSO)
Reply With Quote #63

https://forums.alliedmods.net/showth...t=Kills+sprite
Iam not sure, didnt read codes, just saw the image, and it looks like the same lol
__________________
Jhob94 is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 09-22-2013 , 03:50   Re: Death Sprite Effect (like CSO)
Reply With Quote #64

Yeah there are tons of plugins like these all (atleast in this forum) unnaproved
__________________
BLacking98 is offline
joblessuser
Member
Join Date: May 2013
Old 09-23-2013 , 04:59   Re: Death Sprite Effect (like CSO)
Reply With Quote #65

plugin take consider the previous round kills of the players who are not dead in last round. so i want the plugin to reset the kill count for every round not for ever dead.

Last edited by joblessuser; 09-23-2013 at 06:06.
joblessuser is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-23-2013 , 07:59   Re: Death Sprite Effect (like CSO)
Reply With Quote #66

if has respawn, you have to register round start event. If hasnt respawn you could do with round start event or hooking spawn with ham
__________________
Jhob94 is offline
joblessuser
Member
Join Date: May 2013
Old 09-23-2013 , 10:22   Re: Death Sprite Effect (like CSO)
Reply With Quote #67

Quote:
Originally Posted by Jhob94 View Post
if has respawn, you have to register round start event. If hasnt respawn you could do with round start event or hooking spawn with ham
bro i dont know programming can you please do that. Its for clan server so i want to count the kill for every round.
joblessuser is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-23-2013 , 12:59   Re: Death Sprite Effect (like CSO)
Reply With Quote #68

Its easy, open source and delete level[id]= 0 from public onDeath_level()
Now add level[id]= 0 after g_firstblood = 1 in public eNewRound()



PHP Code:
public onDeath_level()
{
        new 
players_ct[32], players_t[32], ictite
    get_players
(players_ct,ict,"ae","CT")   
    
get_players(players_t,ite,"ae","TERRORIST")
    if (
ict == || ite == 0g_lastkill 1
        
        
new attacker read_data(1)
        new 
victim read_data(2)
        new 
name_attacker[32]
    new 
name_victim[32]

        
level[attacker] += 1

        get_user_name
(attackername_attacker31)
    
get_user_name(victimname_victim31)

        if((
victim == attacker) || (get_user_team(attacker) == get_user_team(victim)) || !victim || !attacker)
            return 
PLUGIN_CONTINUE
       


        
if (g_firstblood && attacker!=victim && attacker>0
    {    
                 
g_firstblood 0            
         set_dhudmessage
(255105180, -1.00.3506.03.00.11.5
         
show_dhudmessage(0"FIRST BLOOD: ^n %s KILLED %s!"name_attackername_victim)
         
client_cmd(0"speak misc/firstblood")
    }
        if (
g_lastkill == 1)
    {
        
g_lastkill 0
                set_dhudmessage
(2552150, -1.00.3006.03.00.11.5
        
show_dhudmessage(0"LAST KILL: ^n %s KILLED %s!"name_attackername_victim)
        
client_cmd(0"speak misc/last_kill")
    }  
        if (
level[attacker] == 1)
        {
            
show_sprite(victimone_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/1_kill")    
        
    }
        if (
level[attacker] == 2)
        {
            
show_sprite(victimtwo_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/2_kill")        
        
    }
        if (
level[attacker] == 3)
        {
            
show_sprite(victimthree_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/3_kill")        
        
    }
        if (
level[attacker] == 4)
        {
            
show_sprite(victimfour_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/4_kill")        
        
    }
        if (
level[attacker] == 5)
        {
            
show_sprite(victimfive_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/5_kill")         
        
    }
        if (
level[attacker] == 6)
        {
            
show_sprite(victimsix_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/6_kill")         
        
    }
        if (
level[attacker] == 7)
        {
            
show_sprite(victimseven_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/7_kill")         
        
    }
        if (
level[attacker] == 8)
        {
            
show_sprite(victimeight_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/8_kill")        
        
    }
        if (
level[attacker] > 8)
        {
            
show_sprite(victimmore_than_eight_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/unstoppable")        
        
    }
         
        return 
PLUGIN_CONTINUE

PHP Code:
public eNewRound()
{
    if (
read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor))
    {
        
g_firstblood 1
        level
[id]= 0
    
}

__________________
Jhob94 is offline
joblessuser
Member
Join Date: May 2013
Old 09-23-2013 , 14:52   Re: Death Sprite Effect (like CSO)
Reply With Quote #69

Quote:
Originally Posted by Jhob94 View Post
Its easy, open source and delete level[id]= 0 from public onDeath_level()
Now add level[id]= 0 after g_firstblood = 1 in public eNewRound()



PHP Code:
public onDeath_level()
{
        new 
players_ct[32], players_t[32], ictite
    get_players
(players_ct,ict,"ae","CT")   
    
get_players(players_t,ite,"ae","TERRORIST")
    if (
ict == || ite == 0g_lastkill 1
        
        
new attacker read_data(1)
        new 
victim read_data(2)
        new 
name_attacker[32]
    new 
name_victim[32]

        
level[attacker] += 1

        get_user_name
(attackername_attacker31)
    
get_user_name(victimname_victim31)

        if((
victim == attacker) || (get_user_team(attacker) == get_user_team(victim)) || !victim || !attacker)
            return 
PLUGIN_CONTINUE
       


        
if (g_firstblood && attacker!=victim && attacker>0
    {    
                 
g_firstblood 0            
         set_dhudmessage
(255105180, -1.00.3506.03.00.11.5
         
show_dhudmessage(0"FIRST BLOOD: ^n %s KILLED %s!"name_attackername_victim)
         
client_cmd(0"speak misc/firstblood")
    }
        if (
g_lastkill == 1)
    {
        
g_lastkill 0
                set_dhudmessage
(2552150, -1.00.3006.03.00.11.5
        
show_dhudmessage(0"LAST KILL: ^n %s KILLED %s!"name_attackername_victim)
        
client_cmd(0"speak misc/last_kill")
    }  
        if (
level[attacker] == 1)
        {
            
show_sprite(victimone_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/1_kill")    
        
    }
        if (
level[attacker] == 2)
        {
            
show_sprite(victimtwo_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/2_kill")        
        
    }
        if (
level[attacker] == 3)
        {
            
show_sprite(victimthree_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/3_kill")        
        
    }
        if (
level[attacker] == 4)
        {
            
show_sprite(victimfour_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/4_kill")        
        
    }
        if (
level[attacker] == 5)
        {
            
show_sprite(victimfive_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/5_kill")         
        
    }
        if (
level[attacker] == 6)
        {
            
show_sprite(victimsix_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/6_kill")         
        
    }
        if (
level[attacker] == 7)
        {
            
show_sprite(victimseven_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/7_kill")         
        
    }
        if (
level[attacker] == 8)
        {
            
show_sprite(victimeight_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/8_kill")        
        
    }
        if (
level[attacker] > 8)
        {
            
show_sprite(victimmore_than_eight_kill)
                
kills[victim] = true
                client_cmd
(attacker,"spk misc/unstoppable")        
        
    }
         
        return 
PLUGIN_CONTINUE

PHP Code:
public eNewRound()
{
    if (
read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor))
    {
        
g_firstblood 1
        level
[id]= 0
    
}

There is no level[id]= 0 in public onDeath_level() and i added the line level[id]= 0 after g_firstblood = 1 . But now i'm getting compiling error, can u please check it or attach modified sma file.
joblessuser is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-23-2013 , 20:47   Re: Death Sprite Effect (like CSO)
Reply With Quote #70

you have to compile localy with the required includes
__________________
Jhob94 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 06:58.


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