23.07.2012, 17:03
pawn Код:
public CWMessage(playerid)
{
if(team1K == CwInfo[kill_limiter])
{
new string[64];
format(string, sizeof(string),"* Team 1 Have Won With %i Kills! Team 2 had %i Kills.", team1K, team2K);
SendClientMessageToAll(COLOR_ORANGE,string);
SendClientMessageToAll(COLOR_ORANGE,"* The Kills for both teams have been reset automatically.");
team1K = 0;
team2K = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pCW] > 0)
{
TogglePlayerControllable(i, 0);
SetTimer("Control", 7000, false);
format(team1kills, sizeof(team1kills), "Team 1: %i / %i",team1K,CwInfo[kill_limiter]);
format(team2kills, sizeof(team2kills), "Team 2: %i / %i",team2K,CwInfo[kill_limiter]);
TextDrawSetString(TextdrawCW, team1kills);
TextDrawSetString(TextdrawCW2, team2kills);
TextDrawShowForPlayer(i, TextdrawCW);
TextDrawShowForPlayer(i, TextdrawCW2);
}
}
}
}