 |
|
Senior Member
|

05-26-2007
, 15:14
Re: Need help with scrore plugin
|
#5
|
Quote:
Originally Posted by regalis
I have coded a plugin for you and you never said "thank you"...that is not nice!
There is another thread from you where someone has coded something for you and you never replied!
Is that normal where you live? I don't think so!
Please be nice to the people who are trying to help you....
Nevertheless here you go:
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)
if(team_wins[0]+team_wins[1] == 6)
{
// 6 rounds played...do something
// maybe changelevel or what ever!?
}
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])
}
Btw.: +Karma would be nice! 
|
t4t, i gave you karma with my name on it, isnt that enought? ^__^
(Cant give karma atm) Is it possible if score is draw to restart round and set round limit to 3 and get winner of those 3 rounds?
Last edited by [X]-RayCat; 05-26-2007 at 15:20.
|
|
|
|