SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Closed Thread
 
Thread Tools Display Modes
Old 10/05/2010, 01:03 AM   #1
keller012
Huge Clucker
 
keller012's Avatar
 
Join Date: Feb 2010
Posts: 390
Reputation: 0
Default [Ajuda]Portão duplo

Pessoal eu fiz um heliporto que ergue a plataforma e abre em cima pra plataforma se acomoda.
nao sei se deu pra intende
mas oque eu quero sabe é o seguinte

como eu faço pra 2 portoes abrirem em 1 so comando
eu crio portões da seguinte forma(inclusive sao esses 2 que eu quero tornar 1 so)

Topo
Code:
new pfa;
new pfa2;
forward fa();
forward fa2();
Code:
if(strcmp(cmd, "/abrirheliporto", true) == 0)
	{
 	if ((PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) && PlayerToPoint(15.0, playerid, 2777.4851074219, -2348.8933105469, 12.521649360657)) { //GateGaragem
	MoveDynamicObject( pfa, 2777.484375, -2348.892578125, 19.25608253479,3);
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "* %s Esta Abrindo o Heliporto!", sendername);
	ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
	SetTimer("fa", 5000, false);
	} else {
 	}
 	return 1;
	}
if(strcmp(cmd, "/abrirheliporto", true) == 0)
	{
 	if ((PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) && PlayerToPoint(15.0, playerid, 2777.4851074219, -2348.8933105469, 12.521649360657)) { //GateGaragem
	MoveDynamicObject( pfa2, 2777.2749023438, -2330.9921875, 19.271648406982,3);
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "* %s Esta Abrindo o Heliporto!", sendername);
	ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
	SetTimer("fa2", 5000, false);
	} else {
 	}
 	return 1;
	}
no fim
Code:
public fa()
{
	MoveDynamicObject(pfa,2777.4851074219, -2348.8933105469, 12.521649360657, 2);//GaragemClosed
	return 1;
}
public fa2()
{
	MoveDynamicObject(pfa2,2777.484375, -2348.892578125, 19.271648406982, 2);//GaragemClosed
	return 1;
}

como eu torno esses 2 portoes 1 so...
tipo digita /abrirheliporto
e abre da lateral o plataforma de cima
e sobe a que tem a hydra estacionada....

keller012 is offline  
Old 10/05/2010, 02:32 AM   #2
SuB_ZeRo0_
Gangsta
 
SuB_ZeRo0_'s Avatar
 
Join Date: Aug 2009
Posts: 889
Reputation: 23
Default Re: [Ajuda]Portão duplo

Topo
Code:
new pfa;
new pfa2;
forward fa();
pawn Code:
if(strcmp(cmd, "/abrirheliporto", true) == 0)
    {
    if ((PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) {
    if(PlayerToPoint(15.0, playerid, 2777.4851074219, -2348.8933105469, 12.521649360657)) {
    MoveDynamicObject( pfa, 2777.484375, -2348.892578125, 19.25608253479,3);
    MoveDynamicObject( pfa2, 2777.2749023438, -2330.9921875, 19.271648406982,3);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s Esta Abrindo o Heliporto!", sendername);
    ProxDetector(4.0, playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
    SetTimer("fa", 5000, false);
    }}
    return 1;
}

no fim
pawn Code:
public fa()
{
    MoveDynamicObject(pfa,2777.4851074219, -2348.8933105469, 12.521649360657, 2);//GaragemClosed
    MoveDynamicObject(pfa2,2777.484375, -2348.892578125, 19.271648406982, 2);
    return 1;
}

Tenta assim:
__________________
SuB_ZeRo0_ is offline  
Old 10/05/2010, 09:24 AM   #3
keller012
Huge Clucker
 
keller012's Avatar
 
Join Date: Feb 2010
Posts: 390
Reputation: 0
Default Re: [Ajuda]Portão duplo

deu
xD
muito obrigado
keller012 is offline  
Closed Thread

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
[Ajuda]Fazer portao. Jhonathann10 Português/Portuguese 4 15/05/2010 10:31 PM
[Ajuda]Portão tshadow Português/Portuguese 10 07/04/2010 08:04 AM
[AJUDA] Portão cabelo Português/Portuguese 5 18/02/2010 10:44 PM
AJUDA COM PORTAO Joness Português/Portuguese 11 09/02/2010 08:44 PM
[Duv]Portao Suporte_bnv Português/Portuguese 7 06/01/2010 11:17 PM


All times are GMT. The time now is 09:20 AM.


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