SA-MP Forums Archive
[Duv]Portao - 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: [Duv]Portao (/showthread.php?tid=119087)



[Duv]Portao - Suporte_bnv - 06.01.2010

Ola Galera eu crei um portao pra tal gang abrilo mais estou com uma duvida pois ele so abre nao fecha alguem poderia me ajudar?
Code:
//----------------------------------{Portao FBI}----------------------------------------
	if(strcmp(cmd, "/pfbi", true) == 0)
	{
	if ((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057)) { //GateGaragem
	MoveObject( portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3);
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
	ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	GameTextForPlayer(playerid, "~y~Aberto", 5000, 3);
	SetTimer("portaofbi", 5000, false);
	} else {
	SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***");
 	}
 	return 1;
	}
Agora no public OnGameModeInit()
Code:
portaofbi = CreateObject(980, 1534.3934326172, -1451.2901611328, 15.163833618164, 0, 0, 0);



Re: [Duv]Portao - OxygenBR - 06.01.2010

Quote:
Originally Posted by Suporte_bnv
Ola Galera eu crei um portao pra tal gang abrilo mais estou com uma duvida pois ele so abre nao fecha alguem poderia me ajudar?
Code:
//----------------------------------{Portao FBI}----------------------------------------
	if(strcmp(cmd, "/pfbi", true) == 0)
	{
	if ((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057)) { //GateGaragem
	MoveObject( portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3);
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
	ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	GameTextForPlayer(playerid, "~y~Aberto", 5000, 3);
	SetTimer("portaofbi", 5000, false);
	} else {
	SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***");
 	}
 	return 1;
	}
Agora no public OnGameModeInit()
Code:
portaofbi = CreateObject(980, 1534.3934326172, -1451.2901611328, 15.163833618164, 0, 0, 0);
Nгo fecha porque vocк sу tem o comando de abrir! Vocк deve ter as coordenas do portгo aberto e do portгo fechado para fazer o comando de fechar.


Re: [Duv]Portao - [VGS]Protioso - 06.01.2010

pawn Code:
// colocar no нniciio:
forward FecharPortaoFBI();

    if(strcmp(cmd, "/pfbi", true) == 0)
    {
        if((PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) && PlayerToPoint(15.0, playerid, 1518.8899,-1453.1156,14.2057))
        { //GateGaragem
            MoveObject(portaofbi, 1523.6569824219, -1450.8671875, 15.320266723633,3);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
            ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            GameTextForPlayer(playerid, "~y~Aberto", 5000, 3);
            SetTimer("FecharPortaoFBI", 5000, false);
        }
        else SendClientMessage(playerid, COLOR_DBLUE, "*** Voce nao esta perto do portao ou nao e do FBI ***");
    }
    return 1;
}

// no final ou inнcio do script
public FecharPortaoFBI() MoveObject(portaofbi, 1534.3934326172, -1451.2901611328, 15.163833618164, 3);



Re: [Duv]Portao - Sucre Pleasure - 06.01.2010

A pouco tempo estavas chamando nos de "nerds" nгo й?

E agora quer a ajuda dos "nerds"?

Tomara que eles aн te ajudem, pois eu nгo irei ajudar.


Re: [Duv]Portao - [VGS]Protioso - 06.01.2010

Quote:
Originally Posted by [SFP
$ucr3[CX] « ]
A pouco tempo estavas chamando nos de "nerds" nгo й?

E agora quer a ajuda dos "nerds"?

Tomara que eles aн te ajudem, pois eu nгo irei ajudar.
Nem liga Sucre, esse cara aн deve ter comeзado a pouco tempo ou й desprovido de QI, porque essas perguntinhas aн sгo fбceis atй para um _(@JS(ЁSUFVGDVGFADCS com asas.


Re: [Duv]Portao - Sucre Pleasure - 06.01.2010

Quote:
Originally Posted by [VGS
Protioso_OC ]
Quote:
Originally Posted by [SFP
$ucr3[CX] « ]
A pouco tempo estavas chamando nos de "nerds" nгo й?

E agora quer a ajuda dos "nerds"?

Tomara que eles aн te ajudem, pois eu nгo irei ajudar.
Nem liga Sucre, esse cara aн deve ter comeзado a pouco tempo ou й desprovido de QI, porque essas perguntinhas aн sгo fбceis atй para um _(@JS(ЁSUFVGDVGFADCS com asas.
AUIAIOUAIUIAOAOUIAUIO', euri.


Re: [Duv]Portao - Suporte_bnv - 06.01.2010

Quote:
Originally Posted by [SFP
$ucr3[CX] « ]

Tomara que eles aн te ajudem, pois eu nгo irei ajudar.
Ja me ajudaram


Re: [Duv]Portao - xolp25 - 06.01.2010

Quote:
Originally Posted by [SFP
$ucr3[CX] « ]
Quote:
Originally Posted by [VGS
Protioso_OC ]
Quote:
Originally Posted by [SFP
$ucr3[CX] « ]
A pouco tempo estavas chamando nos de "nerds" nгo й?

E agora quer a ajuda dos "nerds"?

Tomara que eles aн te ajudem, pois eu nгo irei ajudar.
Nem liga Sucre, esse cara aн deve ter comeзado a pouco tempo ou й desprovido de QI, porque essas perguntinhas aн sгo fбceis atй para um _(@JS(ЁSUFVGDVGFADCS com asas.
AUIAIOUAIUIAOAOUIAUIO', euri.
EURI X2 man