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

CSGO get the winning team on the Match end with all players in the team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 05-28-2019 , 06:28   CSGO get the winning team on the Match end with all players in the team
Reply With Quote #1

Hey, soo.. as the title say, need a script where i can get the winner team CT or T on Match end (not round end) and get all the players in the team, and print it in Chat like: PrintToChatAll("Team X (CT/T) won. The winners are: PLAYERS NAME");
thanks.
iskenderkebab33 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 05-28-2019 , 06:31   Re: CSGO get the winning team on the Match end with all players in the team
Reply With Quote #2

PHP Code:
["game_end",["winner"]] 
hook event game_end, get the value of winner. then loop through players and check if the player's team is the same as winner.
__________________
Ilusion9 is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 05-28-2019 , 10:58   Re: CSGO get the winning team on the Match end with all players in the team
Reply With Quote #3

Quote:
Originally Posted by Ilusion9 View Post
PHP Code:
["game_end",["winner"]] 
hook event game_end, get the value of winner. then loop through players and check if the player's team is the same as winner.
thanks but, event game_end, doesn't exist in the cs go event's : https://wiki.alliedmods.net/Counter-...fensive_Events
iskenderkebab33 is offline
Nexd
BANNED
Join Date: Dec 2013
Location: Hungary
Old 05-28-2019 , 16:16   Re: CSGO get the winning team on the Match end with all players in the team
Reply With Quote #4

Not every event got listed on that list, btw you can use cs_intermission(If I remember well x_x)

Last edited by Nexd; 05-28-2019 at 16:17.
Nexd is offline
impossible_cc
Senior Member
Join Date: Sep 2018
Location: Ukraine
Old 05-28-2019 , 17:56   Re: CSGO get the winning team on the Match end with all players in the team
Reply With Quote #5

game_end should work.
https://wiki.alliedmods.net/Generic_...nts#game_start
__________________
impossible_cc is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 05-29-2019 , 05:40   Re: CSGO get the winning team on the Match end with all players in the team
Reply With Quote #6

Quote:
Originally Posted by iskenderkebab33 View Post
thanks but, event game_end, doesn't exist in the cs go event's : https://wiki.alliedmods.net/Counter-...fensive_Events
https://developer.valvesoftware.com/...33539;例
__________________
Ilusion9 is offline
Reply


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 10:32.


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