[AJUDA] /retirarbarreira
#1

Eu coloquei o comando /barreira e /retirarbarreira no meu server, mas eu consigo colocar a barreira, mas quando se usa o comando /retirarbarreira a barreira nгo some!

O cуdigo:

Код:
if(strcmp(cmdtext, "/retirarbarreiras", true)==0 || strcmp(cmdtext, "/rbrs", true)==0)
	{
		if (PlayerInfo[playerid][pRank] >= 3 && PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
		{
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pRoadblock] != 0)
				{
					RemoveRoadblock(i);
				}
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "HQ: TODAS as barreiras foram retiradas por %s.", sendername);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
					{
						SendClientMessage(i, TEAM_BLUE_COLOR, string);
					}
				}
			}
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ser cargo 3+ ou Lider para usar este comando !");
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)