Raised This Month: $ Target: $400
 0% 

"Frag" counter on every round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kirito
New Member
Join Date: Jul 2013
Old 07-19-2013 , 17:01   "Frag" counter on every round
Reply With Quote #1

Hello. I have a code what counts client's score at the left corner. It's working, but I wanna do a few things;
  • Reset itself on roundstart then count again
  • Keep the score at the scoreboard
  • Money-like counter (maybe)

Like on this picture (red 9 at left)

My code looks like this:

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

#define MIN_KILLS 1 
 
#define PLUGIN  "Frags"  
#define VERSION "1.0"  
#define AUTHOR  "Author"  
const Float:REFRESH_RATE 1.0
new 
maxplayers 

public plugin_init()  
{  
     
    
register_pluginPLUGINVERSIONAUTHOR 
    
maxplayers get_maxplayers() 
    
set_task(1.0,"ShowHud",0,"",0,"b"
    
register_plugin"HUD""0.0.1""Dashie" ); 
    
set_taskREFRESH_RATE"TaskShowRank", .flags "b" ); 

public 
ShowHud() 

    for(new 
<= maxplayers i++) 
    { 
        new 
Frags get_user_frags(i
        
set_hudmessage(2552552550.0230.9406.060.0)
        
show_hudmessage(i,"Frag : %d",Frags
    } 

So how can I do the reset without doing a score reset?
(srry for my bad english, I'm a bit tired)
Kirito 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 06:27.


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