Raised This Month: $ Target: $400
 0% 

[Get player with most kills]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lazarev
Veteran Member
Join Date: Sep 2008
Old 08-20-2010 , 08:40   Re: [Get player with most kills]
Reply With Quote #3

PHP Code:
WinnerCheck()
{
    new 
players[32], numid;
    
get_playersplayersnum );
    for( new 
0numi++ )
    {
        
id players];
        if(
Kills[id] >= RequiredKills)
        {
            new 
szName33 ];
            
get_user_nameidszName32 );
            
client_print(0,print_chat "%s have won this event!"szName );
            return 
PLUGIN_CONTINUE;
        }
    }
    return 
PLUGIN_CONTINUE;

call WinnerCheck() at round end or at deathmsg.
lazarev 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 21:58.


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