Raised This Month: $ Target: $400
 0% 

Need help with scrore plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 05-26-2007 , 14:08   Need help with scrore plugin
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>
 
#define Plugin "Team Score"
#define Version "1.0"
#define Author "Doombringer"
 
new team_wins[2]

public plugin_init()
{
 register_plugin(Plugin, Version, Author)
 
 register_event("TeamScore", "team_score", "a")
 register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public team_score()
{
 new team[2]
 read_data(1, team, 1)
 
 if(team[0] == 'C')
  team_wins[0] = read_data(2) 
  
 else if(team[0] == 'T')
  team_wins[1] = read_data(2)
  
 return PLUGIN_CONTINUE
} 
public new_round()
{
 set_hudmessage(255, 255, 255, 0.01, 0.18, 0, 6.0, 6.0)
 show_hudmessage(0, "CT %d / TS %d", team_wins[0], team_wins[1])
}
I got this plugin. How can i make total rounds to 6 then do something? Like when 6 total rounds have been played?
[X]-RayCat 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 23:52.


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