Raised This Month: $ Target: $400
 0% 

[Any] Set team score


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mikigoaIie
New Member
Join Date: Nov 2019
Old 11-25-2019 , 05:00   [Any] Set team score
Reply With Quote #1

Hi,

I am looking for a plugin that is able to set team score (assuming its possible). I want the plugin to set and save score values, but with most plugins, the game will on event RoundEnd just reset the scores to its normal values.

Code:
public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
	if(GetConVarInt(timeCvar) == 2) {
		SetTeamScore(2, CS_GetTeamScore(2) + GetConVarInt(team2Cvar));
		SetTeamScore(3, CS_GetTeamScore(3) + GetConVarInt(team3Cvar));
	}
}
Which is kinda working, at the next round there is cvar value + normal value, however when I try to call GetTeamScores at the end of each round, it will return normal values (without +cvar), any idea?

Last edited by mikigoaIie; 11-25-2019 at 05:06. Reason: d
mikigoaIie is offline
 


Thread Tools
Display Modes

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 04:56.


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