![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#include <sourcemod> #define TEAM_T 2 #define TEAM_CT 3 #define ct_team "Counter-Terroristen" #define t_team "Terroristen" public OnPluginStart() { HookEvent("round_end", OnRoundEnd); } public OnRoundEnd(Handle: event , const String: name[] , bool: dontBroadcast) { new winner = GetEventInt(event, "winner"); new String:winningTeam[32]; if (winner == TEAM_T){ winningTeam = t_team; } if (winner == TEAM_CT){ winningTeam = ct_team; } if(winner == TEAM_T || winner == TEAM_CT) { PrintCenterTextAll("%s haben gewonnen!", winningTeam); } } |
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #include #define TEAM_T 2 #define TEAM_CT 3 #define ct_team "Counter-Terroristen" #define t_team "Terroristen" public OnPluginStart() { HookEvent("round_end", OnRoundEnd); } public OnRoundEnd(Handle: event , const String: name[] , bool: dontBroadcast) { new winner = GetEventInt(event, "winner"); new String:winningTeam[32]; if (winner == TEAM_T){ winningTeam = t_team; } if (winner == TEAM_CT){ winningTeam = ct_team; } if(winner == TEAM_T || winner == TEAM_CT) { PrintCenterTextAll("%s haben gewonnen!", winningTeam); } }
wie (fast) immer: ungetestet
This post has been edited 2 times, last edit by "MadMakz" (Sep 22nd 2011, 8:44pm)