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

1-Line Best player of the round2-He killed x with x hs


Post New Thread Reply   
 
Thread Tools Display Modes
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-24-2014 , 00:14   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #21

You didn't test. Because it would throw error since you are using amx183 and still have color chat included
__________________
Blizzard_87 is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-24-2014 , 00:47   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #22

Quote:
Originally Posted by 5aloOod View Post
am using this one and its works fine with me
needs amxx 1.8.3 to take full advantage on integrated ColorChat system.
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <hamsandwich> 
#include <cstrike> 
#include <ColorChat>

#define PLUGIN    "New Plugin" 
#define AUTHOR    "Unknown" 
#define VERSION    "1.0" 

new g_iKills[32], g_iHS[32], g_iDmg[32

public 
plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
     
    
RegisterHam(Ham_TakeDamage"player""hamTakeDamage"
    
register_event("DeathMsg""EventDeathMsg""a"
    
register_logevent("RoundEnd"2"1=Round_End"

public 
client_disconnect(id

    
g_iDmg[id] = 0
    
g_iKills[id] = 0
    
g_iHS[id] = 0

public 
hamTakeDamage(victiminflictorattackerFloat:damageDamageBits

    if( 
<= attacker <= 32
    { 
        if(
cs_get_user_team(victim) != cs_get_user_team(attacker)) 
            
g_iDmg[attacker] += floatround(damage
        else 
            
g_iDmg[attacker] -= floatround(damage
    } 

public 
EventDeathMsg() 

    new 
killer read_data(1
    new 
victim read_data(2
    new 
is_hs read_data(3
     
    if(
killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim)) 
    { 
        
g_iKills[killer]++; 
         
        if(
is_hs
            
g_iHS[killer]++; 
    } 
    else 
        
g_iKills[killer]--; 

public 
RoundEnd() 

    new 
iBestPlayer get_best_player() 
     
    new 
szName[32
    
get_user_name(iBestPlayerszNamecharsmax(szName))

    
ColorChat(0GREEN"^1** ^3The best player of the round was ^4%s^1!"szName
    
ColorChat(0GREEN"^1** ^3He killed ^4%i players ^1(^4%i headshots^1) ^3and did ^4%i damage."g_iKills[iBestPlayer], g_iHS[iBestPlayer], g_iDmg[iBestPlayer])

    for(new 
i31i++) 
    { 
        
g_iDmg[i] = 0
        
g_iHS[i] = 0
        
g_iKills[i] = 0
    } 

get_best_player() 

    new 
players[32], num
    
get_players(playersnum); 
    
SortCustom1D(playersnum"sort_bestplayer"
     
    return 
players[0

public 
sort_bestplayer(id1id2

    if(
g_iKills[id1] > g_iKills[id2]) 
        return -
1
    else if(
g_iKills[id1] < g_iKills[id2]) 
        return 
1
    else 
    { 
        if(
g_iDmg[id1] > g_iDmg[id2]) 
            return -
1
        else if(
g_iDmg[id1] < g_iDmg[id2]) 
            return 
1
        else 
            return 
0
    } 
     
    return 
0

Thanks but i think last amx 1.8.2 and i have it ... how i see 1.8.3 in posts
And sure اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
AMeEeRo is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 02-24-2014 , 01:29   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #23

1.8.3-dev-hg193-base.zip
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
5aloOod is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 02-24-2014 , 01:48   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #24

Quote:
Originally Posted by Blizzard_87 View Post
You didn't test. Because it would throw error since you are using amx183 and still have color chat included
tested..
no errors with local compiler
no log errors

Quote:
Originally Posted by AMeEeRo View Post
Thanks but i think last amx 1.8.2 and i have it ... how i see 1.8.3 in posts
1.8.3-dev-hg193-base.zip
Attached Thumbnails
Click image for larger version

Name:	2014-02-24_00005.jpg
Views:	123
Size:	74.5 KB
ID:	130858  
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by 5aloOod; 02-24-2014 at 01:48.
5aloOod is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-25-2014 , 06:04   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #25

What if i have linux server on VPS dude ?
AMeEeRo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-25-2014 , 07:22   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #26

Quote:
Originally Posted by AMeEeRo View Post
What if i have linux server on VPS dude ?
Then go download the Linux version of 1.8.3-dev
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-25-2014 , 13:38   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #27

Quote:
Originally Posted by YamiKaitou View Post
Then go download the Linux version of 1.8.3-dev
Thanks for answer, but mate today i have problem with amx site !
And yesterday was with alliedmods
could not connect to www.amxmodx.org
Can you give me other link for it please please ?
AMeEeRo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-25-2014 , 14:21   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #28

There is no other link. Be patient until the null routes are removed from the DDoS attack, should be later tonight
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-25-2014 , 15:17   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #29

Oh ddos attack fk that !
Haters !
My servers always under attack too !
I choose host has anti ddos before think about anything hhh
i know they pay for that !
Sick ppl i'll wait thanks again for answer
AMeEeRo is offline
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 02-26-2014 , 06:24   Re: 1-Line Best player of the round2-He killed x with x hs
Reply With Quote #30

LoL !
I added last amx now
1.8.3, the problem no statsx.amxx or .sma lol wtf xD

Last edited by AMeEeRo; 02-26-2014 at 06:27. Reason: Sorry i found it i need cstrike too http://www.amxmodx.org/amxxdrop/1.8/amxmodx-1.8.3-dev-hg193-cstrike-linux.tar.gz
AMeEeRo 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 13:54.


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