AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   CSGO get the winning team on the Match end with all players in the team (https://forums.alliedmods.net/showthread.php?t=316539)

iskenderkebab33 05-28-2019 06:28

CSGO get the winning team on the Match end with all players in the team
 
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.

Ilusion9 05-28-2019 06:31

Re: CSGO get the winning team on the Match end with all players in the team
 
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.

iskenderkebab33 05-28-2019 10:58

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

Originally Posted by Ilusion9 (Post 2653397)
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

Nexd 05-28-2019 16:16

Re: CSGO get the winning team on the Match end with all players in the team
 
Not every event got listed on that list, btw you can use cs_intermission(If I remember well x_x)

impossible_cc 05-28-2019 17:56

Re: CSGO get the winning team on the Match end with all players in the team
 
game_end should work.
https://wiki.alliedmods.net/Generic_...nts#game_start

Ilusion9 05-29-2019 05:40

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

Originally Posted by iskenderkebab33 (Post 2653443)
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;例


All times are GMT -4. The time now is 23:16.

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