Raised This Month: $ Target: $400
 0% 

Need help with scrore plugin


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

Quote:
Originally Posted by regalis View Post
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.
[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 10:42.


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