SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 11/06/2010, 06:54 AM   #1
Gameyer
Huge Clucker
 
Gameyer's Avatar
 
Join Date: Jun 2010
Posts: 256
Reputation: 2
Default /balance

Парни вот у меня команда /balance, но когда я балансирую команды, пишет что все сбаланстровалось но ничего не произошло!
Code:
//====================[balance]=================================================
  if(!strcmp(cmdtext,"/balance",true,8))
	{
	if(!IsPlayerAdmin(playerid) || Current != -1) return SendClientMessage(playerid, AAD_COLOR_GREY, "* [Ошибка] Вы должны быть администратором для использования данной команды!");

  new PlayersPlaying;
  for(new i = 0; i < MAX_PLAYERS; i ++)
	  {
			if(IsPlayerConnected(i))
      PlayersPlaying ++;
	  }

  if(PlayersPlaying <= 1) return SendClientMessage(playerid, AAD_COLOR_GREY, "* Ошибка в балансировке команд");

  new Divisor = floatround(PlayersPlaying / 2);
  new Temp;
  new bool:HomeFull = false;

  for(new i = 0; i < MAX_PLAYERS; i ++)
	  {
			if(IsPlayerConnected(i) && Player[i][pPlaying] == true && (Player[i][pTeam] == T_ATT || Player[i][pTeam] == T_DEF))
			{
			  if(HomeFull == false)
			  {
      	    Player[i][pTeam] = T_DEF;
          mySetPlayerColor(i,COLOR_DEF);
          GunSet[i] = 0;
          SetSpawnInfo(i,99,DEFENDER_SKIN,0,0,0,0,0,0,0,0,0,0);
			    Temp ++;
			    if(Temp >= Divisor)
			    {
			      HomeFull = true;
			    }
			  }
			  else if(HomeFull == true)
			  {
          Player[i][pTeam] = T_ATT;
          mySetPlayerColor(i,COLOR_ATT);
          GunSet[i] = 0;
          SetSpawnInfo(i,99,ATTACKER_SKIN,0,0,0,0,0,0,0,0,0,0);
				}
			}
		}

	new string[60];
	format(string, 60, "* Команды сбалансированы администратором");
	SendClientMessageToAll(0xF68900AA, string);
  PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
	return 1;
 	}
Gameyer is offline   Reply With Quote
Old 11/06/2010, 09:05 AM   #2
xomka
Big Clucker
 
xomka's Avatar
 
Join Date: Mar 2008
Posts: 54
Reputation: 0
Default Re: /balance

А разве тут что-то должно происходить?
__________________



xomka is offline   Reply With Quote
Old 11/06/2010, 11:18 AM   #3
Gameyer
Huge Clucker
 
Gameyer's Avatar
 
Join Date: Jun 2010
Posts: 256
Reputation: 2
Default Re: /balance

Quote:
Originally Posted by xomka (78.140.24.18:22003)
А разве тут что-то должно происходить?
Две команды, красные и синие должны сбалансироваться
Gameyer is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
team balance oOhossamOo Help Archive 7 20/06/2010 05:36 PM
HELP WITH BALANCE MEXICAN_NORTE Help Archive 8 30/05/2010 06:02 PM
About Team balance Mr L Help Archive 1 08/03/2010 02:59 PM
team balance ? canpolat_ Help Archive 1 16/02/2010 02:45 PM
Team Balance Lajko1 Help Archive 4 09/12/2009 11:38 AM


All times are GMT. The time now is 09:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.