Raised This Month: $51 Target: $400
 12% 

[Req]How to find the current match score


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 02-03-2017 , 15:44   [Req]How to find the current match score
Reply With Quote #1

Hi everyone,
how can i find the current match score?

Last edited by stephen473; 02-03-2017 at 16:39.
stephen473 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-03-2017 , 15:52   Re: [Req]How to find the current match score
Reply With Quote #2

https://sm.alliedmods.net/new-api/cs...S_GetTeamScore
https://sm.alliedmods.net/new-api/sd...s/GetTeamScore
PHP Code:
public Action:get_teamscoreclientargc )
{
    new 
tscore CS_GetTeamScoreCS_TEAM_T );
    new 
ctscore CS_GetTeamScoreCS_TEAM_CT );

    
ReplyToCommandclient"Team Scores: T = %d, CT = %d"tscorectscore );

    return 
Plugin_Handled;

This can be found in scripting\testsuite\cstrike-test.sp
Maxximou5 is offline
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 02-03-2017 , 16:24   Re: [Req]How to find the current match score
Reply With Quote #3

It looks simple, thanks so much
stephen473 is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 02-03-2017 , 18:37   Re: [Req]How to find the current match score
Reply With Quote #4

Or you can collect them.
__________________
vortex. is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-03-2017 , 19:45   Re: [Req]How to find the current match score
Reply With Quote #5

Quote:
Originally Posted by vortex. View Post
Or you can collect them.
Why feel the need to comment useless help on every thread?
Addicted. is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 02-03-2017 , 20:16   Re: [Req]How to find the current match score
Reply With Quote #6

Useless? I'm trying to help. Collects the values and finds the sum. I am sorry if I disturbed you.
__________________

Last edited by vortex.; 02-03-2017 at 20:19.
vortex. is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 02-03-2017 , 21:17   Re: [Req]How to find the current match score
Reply With Quote #7

Quote:
Originally Posted by vortex. View Post
Useless? I'm trying to help. Collects the values and finds the sum. I am sorry if I disturbed you.
Collecting the values is a waste of memory and time when you can do something as simple as what Maxximou5 posted.
__________________
Chaosxk is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 02-03-2017 , 21:35   Re: [Req]How to find the current match score
Reply With Quote #8

Quote:
Originally Posted by vortex. View Post
Useless? I'm trying to help. Collects the values and finds the sum. I am sorry if I disturbed you.
The working answer was provided and acknowledged hours before your response which didn't actually include any detail or actual help

Last edited by Addicted.; 02-03-2017 at 21:36.
Addicted. is offline
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Old 02-04-2017 , 05:30   Re: [Req]How to find the current match score
Reply With Quote #9

This is enough for me,thanks for all help
stephen473 is offline
Reply



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 03:05.


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