Raised This Month: $161 Target: $400
 40% 

FragCounter(Scarzzurs)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   devicenull (200)
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-28-2004 , 23:04   FragCounter(Scarzzurs)
Reply With Quote #1

ported on request : http://130.215.31.29/forums/viewtopic.php?t=3445

Code:
/*AMX MOD X script
**************************************************************************
 * 		FragCounter   V    1.01		by	Scarzzurs
 *
 *
 *  ***********************************************************************
 *  
 *	Ported By KingPin( [email protected] ). I take no responsibility 
 *	for this file in any way. Use at your own risk. No warranties of any kind. 
 *
 *  **********************************************************************
 *
 **********************************************************************************/

#include <amxmodx>
there is an excellent frag vault by JGHG that remmebers your frags when u leave the server, try it out also. its called Remember the Frags
Attached Files
File Type: sma Get Plugin or Get Source (fragcounter.sma - 8240 views - 5.4 KB)
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
jay7
Senior Member
Join Date: Jun 2004
Old 11-07-2004 , 23:13  
Reply With Quote #2

the count stops at 9 and for a dm server this is not enough. anyone care to fix?
jay7 is offline
jay7
Senior Member
Join Date: Jun 2004
Old 06-23-2005 , 15:28  
Reply With Quote #3

refreshing
jay7 is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 06-23-2005 , 16:45  
Reply With Quote #4

huh?
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
jay7
Senior Member
Join Date: Jun 2004
Old 06-28-2005 , 16:46  
Reply With Quote #5

Quote:
Originally Posted by proach
huh?
what?
jay7 is offline
[]D [] []v[] []D
Member
Join Date: Jul 2005
Old 07-28-2005 , 23:06  
Reply With Quote #6

what does this do ?
[]D [] []v[] []D is offline
Send a message via ICQ to []D [] []v[] []D
hariS.
Junior Member
Join Date: Feb 2009
Location: Bosnia & Herzegovina
Old 06-18-2010 , 19:39   Re: FragCounter(Scarzzurs)
Reply With Quote #7

please post me this plugin wich can count more than 9 frags
__________________
Known as Ha[R]iS.
hariS. is offline
Send a message via MSN to hariS.
hariS.
Junior Member
Join Date: Feb 2009
Location: Bosnia & Herzegovina
Old 06-19-2010 , 03:49   Re: FragCounter(Scarzzurs)
Reply With Quote #8

Will it work this way ?

Code:
/*AMX MOD X script
**************************************************************************
 *         FragCounter   V    1.01        by    Scarzzurs
 *
 *
 *  *******************************************************************************
 *  
 *    Ported By KingPin( [email protected] ). I take no responsibility 
 *    for this file in any way. Use at your own risk. No warranties of any kind. 
 *
 *  ********************************************************************************
 *
 **********************************************************************************/

#include <amxmodx>

new pfrags[33]
new top
new gmsgStatusIcon

public playerspawn(id){
    pfrags[id]=0
    top = 0
    calculate_time(id,pfrags[id])
}

public death(){
    new killer = read_data(1)
    pfrags[killer]=pfrags[killer]+1
    if (pfrags[killer]==12 && file_exists("sound/misc/monsterkill.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/monsterkill.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    topplayer()
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++)
        calculate_time(players[i],pfrags[players[i]])
    return PLUGIN_CONTINUE
}

public topplayer(){
    new score
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++){
        if (pfrags[players[i]]>score){
            score=pfrags[players[i]]
            top=players[i]
        }
        else if (pfrags[players[i]]==score)
            top = 0
    }
}

public calculate_time(id,num){
    switch(num){
        case 0:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 1:{
            showtimer(id,"number_1",1)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 2:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",1)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 3:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",1)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 4:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",1)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 5:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",1)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 6:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",1)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 7:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",1)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 8:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",1)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }
        case 9:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",1)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }    
        case 10:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",1)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",0)
        }    
        case 11:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",1)
            showtimer(id,"number_12",0)
        }    
        case 12:{
            showtimer(id,"number_1",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_9",0)
            showtimer(id,"number_10",0)
            showtimer(id,"number_11",0)
            showtimer(id,"number_12",1)
        }
    }
}

public showtimer(id,number[10],onoff){
    if (is_user_connected(id)){
        if (id == top && onoff == 1)
            onoff = 2
        message_begin( MSG_ONE, gmsgStatusIcon, {0,0,0}, id )
        write_byte( onoff ) // status
        write_string( number ) // sprite name
        write_byte( 0 ) // red
        write_byte( 255 ) // green
        write_byte( 0 ) // blue
        message_end()
    }
}

public roundend(){
    if (top != 0){
        new sname[32]
        get_user_name(top,sname,32)
        set_hudmessage(0, 255, 0, -1.0, 0.3, 0, 1.0, 5.0, 0.1, 0.2, 5)
        show_hudmessage(0,"Igrac runde: %s",sname)
    }
}

public plugin_init(){
    register_plugin("FragCounter","1.01","Scarzzurs")
    gmsgStatusIcon = get_user_msgid("StatusIcon")
    register_event("DeathMsg","death","a")
    register_event("ResetHUD","playerspawn","b")
    register_event("SendAudio","roundend","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
}

public plugin_precache()
    if (file_exists("sound/misc/monsterkill.wav")==1)
        precache_sound("misc/monsterkill.wav")
__________________
Known as Ha[R]iS.
hariS. is offline
Send a message via MSN to hariS.
luxyaself
Junior Member
Join Date: Aug 2010
Old 08-30-2010 , 00:47   Re: FragCounter(Scarzzurs)
Reply With Quote #9

No doesn't seem to work this way...

Seems like there is no "Number_X" > 9 in the showtimer function, but there actually is a "Number_0".
You can also set up 2 numbers at the same time - but not twice the same one - so you get problems with 11, 22, 33, 44, 55, 66, ...

I therefor used the set_hudmessage & show_hudmessage functions and edited it so that the fragcounter now works perfectly fine from 0 up till 99

0-9 showtimer()
10-99 show_hudmessage()

Also included:
20 frags -> humiliation sound
30 frags -> killingspree sound
50 frags -> rampage sound
75 frags -> holysh** sound
100 frags -> godlike sound


Code:
/*AMX MOD X script
**************************************************************************
 *         FragCounter   V    1.02        by    Scarzzurs (lux edited)
 *
 *
 *  *******************************************************************************
 *  
 *    Ported By KingPin( [email protected] ). I take no responsibility 
 *    for this file in any way. Use at your own risk. No warranties of any kind. 
 *
 *  ********************************************************************************
 *
 **********************************************************************************/

#include <amxmodx>

new pfrags[101]
new top
new gmsgStatusIcon


public playerspawn(id){
    pfrags[id]=0
    top = 0
    calculate_time(id,pfrags[id])
}

public death(){
    new killer = read_data(1)
    pfrags[killer]=pfrags[killer]+1

    if (pfrags[killer]==10 && file_exists("sound/misc/monsterkill.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/monsterkill.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==20 && file_exists("sound/misc/humiliation.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/humiliation.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==30 && file_exists("sound/misc/killingspree.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/killingspree.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==50 && file_exists("sound/misc/rampage.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/rampage.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==75 && file_exists("sound/misc/holyshit.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/holyshit.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==100 && file_exists("sound/misc/godlike.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/godlike.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    topplayer()
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++)
        calculate_time(players[i],pfrags[players[i]])
    return PLUGIN_CONTINUE
}

public topplayer(){
    new score
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++){
        if (pfrags[players[i]]>score){
            score=pfrags[players[i]]
            top=players[i]
        }
        else if (pfrags[players[i]]==score)
            top = 0
    }
}

public calculate_time(id,num){
    switch(num){
        case 0:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",1)
            set_hudmessage ( 0, 0, 0, -99.0, 99.0, 0, 6.0, 0.1, 0.1, 0.1, 4) 
            show_hudmessage(id,".")
        }
        case 1:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",1)
            showtimer(id,"number_0",0)
        }
        case 2:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",1)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 3:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",1)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 4:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",1)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 5:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",1)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 6:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",1)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 7:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",1)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 8:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",1)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 9:{
            showtimer(id,"number_9",1)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 10:{            
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"10")
        }
        case 11:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"11")
        }
        case 12:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"12")
        }
        case 13:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"13")
        }
        case 14:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"14")
        }
        case 15:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"15")
        }
        case 16:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"16")
        }
        case 17:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"17")
        }
        case 18:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"18")
        }
        case 19:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"19")
        }
        case 20:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"20")

        }
        case 21:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"21")
        }
        case 22:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"22")
        }
        case 23:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"23")
        }
        case 24:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"24")
        }
        case 25:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"25")
        }
        case 26:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"26")
        }
        case 27:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"27")
        }
        case 28:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"28")
        }
        case 29:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"29")
        }
        case 30:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"30")

        }
        case 31:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"31")
        }
        case 32:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"32")
        }
        case 33:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"33")
        }
        case 34:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"34")
        }
        case 35:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"35")
        }
        case 36:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"36")
        }
        case 37:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"37")
        }
        case 38:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"38")
        }
        case 39:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"39")
        }
        case 40:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"40")
        }
        case 41:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"41")
        }
        case 42:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"42")
        }
        case 43:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"43")
        }
        case 44:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"44")
        }
        case 45:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"45")
        }
        case 46:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"46")
        }
        case 47:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"47")
        }
        case 48:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"48")
        }
        case 49:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"49")
        }
        case 50:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"50")
        }
        case 51:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"51")
        }
        case 52:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"52")
        }
        case 53:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"53")
        }
        case 54:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"54")
        }
        case 55:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"55")
        }
        case 56:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"56")
        }
        case 57:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"57")
        }
        case 58:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"58")
        }
        case 59:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"59")
        }
        case 60:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"60")
        }
        case 61:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"61")
        }
        case 62:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"62")
        }
        case 63:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"63")
        }
        case 64:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"64")
        }
        case 65:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"65")
        }
        case 66:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"66")
        }
        case 67:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"67")
        }
        case 68:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"68")
        }
        case 69:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"69")
        }
        case 70:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"70")
        }
        case 71:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"71")
        }
        case 72:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"72")
        }
        case 73:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"73")
        }
        case 74:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"74")
        }
        case 75:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"75")
        }
        case 76:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"76")
        }
        case 77:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"77")
        }
        case 78:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"78")
        }
        case 79:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"79")
        }
        case 80:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"80")
        }
        case 81:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"81")
        }

        case 82:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"82")
        }
        case 83:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"83")
        }
        case 84:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"84")
        }
        case 85:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"85")
        }
        case 86:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"86")
        }
        case 87:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"87")
        }
        case 88:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"88")
        }
        case 89:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"89")
        }
        case 90:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"90")
        }

        case 91:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"91")
        }
        case 92:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"92")
        }
        case 93:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"93")
        }
        case 94:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"94")
        }
        case 95:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"95")
        }
        case 96:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"96")
        }
        case 97:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"97")
        }
        case 98:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"98")
        }
        case 99:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"99")
        }
        case 100:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.45, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"godlike")
        }
    }
}

public showtimer(id,number[33],onoff){
    if (is_user_connected(id)){
        if (id == top && onoff == 1)
            onoff = 2
        message_begin( MSG_ONE, gmsgStatusIcon, {0,0,0}, id )
        write_byte( onoff ) // status
        write_string( number ) // sprite name
        write_byte( 150 ) // red
        write_byte( 120 ) // green
        write_byte( 60 ) // blue
        message_end()
    }
}

public roundend(){
    if (top != 0){
        new sname[32]
        get_user_name(top,sname,32)
        set_hudmessage(150, 120, 60, -1.0, 0.3, 0, 1.0, 5.0, 0.1, 0.2, 5)
        show_hudmessage(0,"Best player of the round: %s",sname)
    }
}

public plugin_init(){
    register_plugin("FragCounter","1.02","Scarzzurs - luxedit")
    gmsgStatusIcon = get_user_msgid("StatusIcon")
    register_event("DeathMsg","death","a")
    register_event("ResetHUD","playerspawn","b")
    register_event("SendAudio","roundend","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
}

public plugin_precache(){
    if (file_exists("sound/misc/monsterkill.wav")==1)
        precache_sound("misc/monsterkill.wav")
    if (file_exists("sound/misc/humiliation.wav")==1)
        precache_sound("misc/humiliation.wav")
    if (file_exists("sound/misc/killingspree.wav")==1)
        precache_sound("misc/killingspree.wav")
    if (file_exists("sound/misc/rampage.wav")==1)
        precache_sound("misc/rampage.wav")
    if (file_exists("sound/misc/holyshit.wav")==1)
        precache_sound("misc/holyshit.wav")
    if (file_exists("sound/misc/godlike.wav")==1)
        precache_sound("misc/godlike.wav")
}
Screen: http://yfrog.com/mwdeaztec0006j

Edit:
Changed hight and width a little bit

Code:
/*AMX MOD X script
**************************************************************************
 *         FragCounter   V    1.02        by    Scarzzurs (lux edited)
 *
 *
 *  *******************************************************************************
 *  
 *    Ported By KingPin( [email protected] ). I take no responsibility 
 *    for this file in any way. Use at your own risk. No warranties of any kind. 
 *
 *  ********************************************************************************
 *
 **********************************************************************************/

#include <amxmodx>

new pfrags[101]
new top
new gmsgStatusIcon


public playerspawn(id){
    pfrags[id]=0
    top = 0
    calculate_time(id,pfrags[id])
}

public death(){
    new killer = read_data(1)
    pfrags[killer]=pfrags[killer]+1

    if (pfrags[killer]==10 && file_exists("sound/misc/monsterkill.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/monsterkill.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==20 && file_exists("sound/misc/humiliation.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/humiliation.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==30 && file_exists("sound/misc/killingspree.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/killingspree.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==50 && file_exists("sound/misc/rampage.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/rampage.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==75 && file_exists("sound/misc/holyshit.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/holyshit.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    if (pfrags[killer]==100 && file_exists("sound/misc/godlike.wav")==1)
        emit_sound(killer,CHAN_STATIC, "misc/godlike.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
    topplayer()
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++)
        calculate_time(players[i],pfrags[players[i]])
    return PLUGIN_CONTINUE
}

public topplayer(){
    new score
    new players[32]
    new player_num
    get_players(players, player_num)
    for (new i = 0; i < player_num; i++){
        if (pfrags[players[i]]>score){
            score=pfrags[players[i]]
            top=players[i]
        }
        else if (pfrags[players[i]]==score)
            top = 0
    }
}

public calculate_time(id,num){
    switch(num){
        case 0:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",1)
            set_hudmessage ( 0, 0, 0, -99.0, 99.0, 0, 6.0, 0.1, 0.1, 0.1, 4) 
            show_hudmessage(id,"  .")
        }
        case 1:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",1)
            showtimer(id,"number_0",0)
        }
        case 2:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",1)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 3:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",1)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 4:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",1)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 5:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",1)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 6:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",1)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 7:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",1)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 8:{
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",1)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 9:{
            showtimer(id,"number_9",1)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
        }
        case 10:{            
            showtimer(id,"number_9",0)
            showtimer(id,"number_8",0)
            showtimer(id,"number_7",0)
            showtimer(id,"number_6",0)
            showtimer(id,"number_5",0)
            showtimer(id,"number_4",0)
            showtimer(id,"number_3",0)
            showtimer(id,"number_2",0)
            showtimer(id,"number_1",0)
            showtimer(id,"number_0",0)
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  10")
        }
        case 11:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  11")
        }
        case 12:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  12")
        }
        case 13:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  13")
        }
        case 14:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  14")
        }
        case 15:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  15")
        }
        case 16:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  16")
        }
        case 17:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  17")
        }
        case 18:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  18")
        }
        case 19:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  19")
        }
        case 20:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  20")

        }
        case 21:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  21")
        }
        case 22:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  22")
        }
        case 23:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  23")
        }
        case 24:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  24")
        }
        case 25:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  25")
        }
        case 26:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  26")
        }
        case 27:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  27")
        }
        case 28:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  28")
        }
        case 29:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  29")
        }
        case 30:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  30")

        }
        case 31:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  31")
        }
        case 32:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  32")
        }
        case 33:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  33")
        }
        case 34:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  34")
        }
        case 35:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  35")
        }
        case 36:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  36")
        }
        case 37:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  37")
        }
        case 38:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  38")
        }
        case 39:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  39")
        }
        case 40:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  40")
        }
        case 41:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  41")
        }
        case 42:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  42")
        }
        case 43:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  43")
        }
        case 44:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  44")
        }
        case 45:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  45")
        }
        case 46:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  46")
        }
        case 47:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  47")
        }
        case 48:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  48")
        }
        case 49:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  49")
        }
        case 50:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  50")
        }
        case 51:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  51")
        }
        case 52:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  52")
        }
        case 53:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  53")
        }
        case 54:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  54")
        }
        case 55:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  55")
        }
        case 56:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  56")
        }
        case 57:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  57")
        }
        case 58:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  58")
        }
        case 59:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  59")
        }
        case 60:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  60")
        }
        case 61:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  61")
        }
        case 62:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  62")
        }
        case 63:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  63")
        }
        case 64:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  64")
        }
        case 65:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  65")
        }
        case 66:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  66")
        }
        case 67:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  67")
        }
        case 68:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  68")
        }
        case 69:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  69")
        }
        case 70:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  70")
        }
        case 71:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  71")
        }
        case 72:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  72")
        }
        case 73:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  73")
        }
        case 74:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  74")
        }
        case 75:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  75")
        }
        case 76:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  76")
        }
        case 77:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  77")
        }
        case 78:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  78")
        }
        case 79:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  79")
        }
        case 80:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  80")
        }
        case 81:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  81")
        }

        case 82:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  82")
        }
        case 83:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  83")
        }
        case 84:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  84")
        }
        case 85:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  85")
        }
        case 86:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  86")
        }
        case 87:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  87")
        }
        case 88:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  88")
        }
        case 89:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  89")
        }
        case 90:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  90")
        }

        case 91:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  91")
        }
        case 92:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  92")
        }
        case 93:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  93")
        }
        case 94:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  94")
        }
        case 95:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  95")
        }
        case 96:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  96")
        }
        case 97:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  97")
        }
        case 98:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  98")
        }
        case 99:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  99")
        }
        case 100:{
            set_hudmessage ( 150, 120, 30, -2.0, 0.40, 0, 6.0, 100.0, 0.1, 0.2, 4) 
            show_hudmessage(id,"  godlike")
        }
    }
}

public showtimer(id,number[33],onoff){
    if (is_user_connected(id)){
        if (id == top && onoff == 1)
            onoff = 2
        message_begin( MSG_ONE, gmsgStatusIcon, {0,0,0}, id )
        write_byte( onoff ) // status
        write_string( number ) // sprite name
        write_byte( 150 ) // red
        write_byte( 120 ) // green
        write_byte( 60 ) // blue
        message_end()
    }
}

public roundend(){
    if (top != 0){
        new sname[32]
        get_user_name(top,sname,32)
        set_hudmessage(150, 120, 60, -1.0, 0.3, 0, 1.0, 5.0, 0.1, 0.2, 5)
        show_hudmessage(0,"Best player of the round: %s",sname)
    }
}

public plugin_init(){
    register_plugin("FragCounter","1.02","Scarzzurs - luxedit")
    gmsgStatusIcon = get_user_msgid("StatusIcon")
    register_event("DeathMsg","death","a")
    register_event("ResetHUD","playerspawn","b")
    register_event("SendAudio","roundend","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
}

public plugin_precache(){
    if (file_exists("sound/misc/monsterkill.wav")==1)
        precache_sound("misc/monsterkill.wav")
    if (file_exists("sound/misc/humiliation.wav")==1)
        precache_sound("misc/humiliation.wav")
    if (file_exists("sound/misc/killingspree.wav")==1)
        precache_sound("misc/killingspree.wav")
    if (file_exists("sound/misc/rampage.wav")==1)
        precache_sound("misc/rampage.wav")
    if (file_exists("sound/misc/holyshit.wav")==1)
        precache_sound("misc/holyshit.wav")
    if (file_exists("sound/misc/godlike.wav")==1)
        precache_sound("misc/godlike.wav")
}
Screen: http://yfrog.com/mocsassault0000j
amxx & sma File 1.03: http://www.team-amaya.de/fragcounterlx.zip



Last edited by luxyaself; 08-30-2010 at 07:04. Reason: Addition
luxyaself is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 12-11-2010 , 11:40   Re: FragCounter(Scarzzurs)
Reply With Quote #10

it would be possible, do the opposite to this.

count the deaths?
__________________
rx1983 is offline
Send a message via MSN to rx1983
Reply


Thread Tools
Display Modes

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


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