 sourceserver.info »
 sourceserver.info » Main »
 Main » Source Mod »
 Source Mod » Hilfe »
 Hilfe »|   | 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
#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)



 Hilfe »
 Hilfe » [CS:S] GunGame SM Waffe hängt
											(Sep 13th 2011, 10:23am)
 [CS:S] GunGame SM Waffe hängt
											(Sep 13th 2011, 10:23am)
										 Hilfe »
 Hilfe » Suche Plugin
											(Sep 4th 2011, 11:37am)
 Suche Plugin
											(Sep 4th 2011, 11:37am)
										 Hilfe »
 Hilfe » "sm plugins" blocker?
											(Aug 18th 2011, 6:01pm)
 "sm plugins" blocker?
											(Aug 18th 2011, 6:01pm)
										 Hilfe »
 Hilfe » Suche SM Plugin Score resume
											(Jul 2nd 2011, 10:58am)
 Suche SM Plugin Score resume
											(Jul 2nd 2011, 10:58am)
										 Hilfe »
 Hilfe » Suche Plugin für damage
											(Oct 31st 2009, 5:30pm)
 Suche Plugin für damage
											(Oct 31st 2009, 5:30pm)
										 
					 
  
  
  
  
  
  
  
		