Raised This Month: $ Target: $400
 0% 

[REQ] top frags every round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
plowed
Senior Member
Join Date: Oct 2010
Location: germany
Old 09-26-2011 , 18:12   Re: [REQ] top frags every round
Reply With Quote #2

Ive tried but got confused and tired maybe someone else will do it o.O

PHP Code:
#include <amxmodx>
#include <cstrike>

new g_maxplayers

public plugin_init()
{
    
register_plugin("test""1.0""tester")
    
register_logevent("logevent_round_end"2"1=Round_End")

    
g_maxplayers get_maxplayers()
}


public 
logevent_round_end()
{
    new 
top1[33], top2[33], top3[33]

    for(new try = 
0; try < 4; try++) // Check all player 3 time...
    
{
        for(new 
i=0i<=g_maxplayersi++) { 
        if(
is_user_connected(i)) 
        { 
            new 
name[33], tempFrags
            get_user_name
(iname,32)     
            
tempFrags get_user_frags(i)
            if(
top1 tempFrags) {
                
format(top1charsmax(top1),  "%s"name)
            }
            if((
top2 tempFrags) && (tempFrags top1)) {
                
format(top2charsmax(top2),  "%s"name)
            }
            if((
top3 tempFrags) && (tempFrags top2)) {
                 
format(top3charsmax(top3),  "%s"name)
            }
            else {
                break
            }
        }
    }
        
set_hudmessage(02550, -1.0, -1.0)
        
show_hudmessage(0"Best Frager:^n%s^n%s^n%s"top1top2top3)
    }  
    
//Set the top fragger to 0 here again,,,

and yes its not finished
__________________
Zombie Mod + gameMe stats :
plowed is offline
 



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


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