SA-MP Forums Archive
[AJUDA] /retirarbarreira - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] /retirarbarreira (/showthread.php?tid=185983)



[AJUDA] /retirarbarreira - TretARoX - 27.10.2010

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;
	}