SA-MP Forums Archive
[Ajuda] Portão bope só aparece pros bope. '-' - 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] Portão bope só aparece pros bope. '-' (/showthread.php?tid=386724)



Portão bope só aparece pros bope. '-' - duuuwh - 21.10.2012

Código:
PHP код:
    if(strcmp(cmd"/pbabrir"true) == 0)
    {
        if (
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == || IsACop(playerid))
        { 
//GateGaragem
            
F_MoveObjectportaobp1874.8966,-1622.9390,13.4091,3);
            
GameTextForPlayer(playerid"~w~Portão B.O.P.E ~n~~b~aberto"50003);
            
SetTimer("PORTAOBP"5000false);
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"*** Você não está perto do portao ou nao e do B.O.P.E ***");
          }
          return 
1;
    } 
Esse portão só aparece pros bope, não é bope? não aparece. ;(

Ajudem?

+rep pra quem me ajudar!


Re: Portгo bope sу aparece pros bope. '-' - Joao Pedro - 21.10.2012

Nгo entendi. O que nгo aparece? O portгo?


Re: Portão bope só aparece pros bope. '-' - duuuwh - 21.10.2012

sim, so aparece pros bope o portao '-'


Re: Portгo bope sу aparece pros bope. '-' - matheuspain - 21.10.2012

Pelo que eu estou vendo seu Portгo estб totalmente errado
Siga esse exemplo acho que vai conseguir , ou procura algum tutorial "CRIANDO PORTХES AUTOMATICOS"

Код:
if(strcmp(cmd, "/pb", true) == 0)
	{
		if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 283.095062, -1542.899170, 25.510294) || PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353) && PlayerToPoint(15.0, playerid, 321.832672, -1488.615112, 25.527353))
		{ //GateGaragem
			MoveObject( gt3gate, 283.095062, -1542.899170, 33.385311,3,0.0, 0.0, 326.2500);
			MoveObject( gt3gate3, 321.832672, -1488.615112, 33.777353,3,0.0, 0.0, 323.6717);
			GameTextForPlayer(playerid, "~w~Portao BOPE ~n~~b~Aberto", 5000, 3);
			SetTimer("gt3gate2", 5000, false);
		}
	  	return true;
	}