SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 24/09/2017, 05:01 PM   #1
Poseidon4625
Huge Clucker
 
Poseidon4625's Avatar
 
Join Date: Mar 2017
Location: São Paulo - SP
Posts: 207
Reputation: 8
Default Player se encontrando em Interiores??

Bom, vou dar um exemplo, eu to criando varias agencias no meu gm, o problema é que criei uma em sf e outra em ls e quando entro na agencia de sf eu consigo ir pra ls, como faço pra quando o player entrar em sf ele ñ encontrar os player da agencia de ls??
Poseidon4625 is offline   Reply With Quote
Old 24/09/2017, 05:31 PM   #2
DelK
Huge Clucker
 
DelK's Avatar
 
Join Date: Apr 2017
Location: Brazil
Posts: 400
Reputation: 40
Default Re: Player se encontrando em Interiores??

Bom, você deve estar usando o mesmo interior das duas agências, se não for isso poste o código.
__________________
DelK is offline   Reply With Quote
Old 24/09/2017, 05:39 PM   #3
Poseidon4625
Huge Clucker
 
Poseidon4625's Avatar
 
Join Date: Mar 2017
Location: São Paulo - SP
Posts: 207
Reputation: 8
Default Re: Player se encontrando em Interiores??

aqui está, eu estou fazendo entrada pra interiores com Pickup

Quote:
new entraragencials;
new sairagencials;
new entraragenciasf;
new sairagenciasf;

public OnGameMode

entraragencials = CreatePickup(1314, 1,1684.4460,-1343.2657,17.4371, -1);
sairagencials = CreatePickup(1239, 1,1494.4381,1303.5789,1093.2891, -1);
entraragenciasf = CreatePickup(1314, 1,-2586.4631,147.2466,4.3359, -1);
sairagenciasf = CreatePickup(1239, 1,1236.5945,231.5697,7.4321, -1);

OnPlayerPickupPickup

if(pickupid == entraragencials)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
if(pickupid == sairagencials)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1688.5641,-1344.6888,17.4297);
}
if(pickupid == entraragenciasf)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
if(pickupid == sairagenciasf)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1-2586.6809,151.3103,4.3355);
}
Poseidon4625 is offline   Reply With Quote
Old 24/09/2017, 05:42 PM   #4
Poseidon4625
Huge Clucker
 
Poseidon4625's Avatar
 
Join Date: Mar 2017
Location: São Paulo - SP
Posts: 207
Reputation: 8
Default Re: Player se encontrando em Interiores??

Eu só queria saber como faço pros players que estiverem no mesmo interior só que em um outro local não se encontrasse com os outros players que estivessem por exemplo lá em sf, eu sabia fazer só que fiquei um tempo fora do samp e esqueci.
Poseidon4625 is offline   Reply With Quote
Old 24/09/2017, 05:49 PM   #5
AuhMaru
Big Clucker
 
Join Date: Oct 2016
Posts: 97
Reputation: 11
Default Re: Player se encontrando em Interiores??

Code:
SetPlayerVirtualWorld
AuhMaru is offline   Reply With Quote
Old 24/09/2017, 05:50 PM   #6
Don_Speed
High-roller
 
Don_Speed's Avatar
 
Join Date: Sep 2011
Location: Curitiba / PR
Posts: 3,257
Reputation: 256
Default Re: Player se encontrando em Interiores??

http://wiki.sa-mp.com/wiki/SetPlayerVirtualWorld_FR
__________________
Don_Speed is offline   Reply With Quote
Old 24/09/2017, 06:16 PM   #7
powerths
Huge Clucker
 
powerths's Avatar
 
Join Date: Apr 2013
Location: Mundo Virtual
Posts: 284
Reputation: 0
Default Re: Player se encontrando em Interiores??

EXEMPLO:

PHP Code:
//TOPO
enum PlayerInfo
{
  
EntrouAgencia
};


public 
OnPlayerConnect(playerid)
{
   
pInfo[playerid][EntrouAgencia] = 0;
   return 
1;
}

//ENTRAR AGENCIA
        
if(IsPlayerInRangeOfPoint(playerid2.01310.4525,-1367.4639,13.4724)) // Agência LS
        
{
            
SetPlayerPos(playerid246.375991,109.245994,1003.218750);
            
SetPlayerFacingAngle(playerid359.6873);
            
SetPlayerInterior(playerid10);
            
pInfo[playerid][EntrouAgencia] = 1;//<<<
                    
SetPlayerVirtualWorld(playerid5);
            
SetCameraBehindPlayer(playerid);
            return 
1;
        }
        if(
IsPlayerInRangeOfPoint(playerid2.01310.4525,-1367.4639,13.4724)) // Agência SF
        
{
            
SetPlayerPos(playerid246.375991,109.245994,1003.218750);
            
SetPlayerFacingAngle(playerid359.6873);
            
SetPlayerInterior(playerid10);
            
pInfo[playerid][EntrouAgencia] = 2;//<<<
                    
SetPlayerVirtualWorld(playerid10);
            
SetCameraBehindPlayer(playerid);
            return 
1;
        }
        if(
IsPlayerInRangeOfPoint(playerid2.01310.4525,-1367.4639,13.4724)) // Agência LV
        
{
            
SetPlayerPos(playerid246.375991,109.245994,1003.218750);
            
SetPlayerFacingAngle(playerid359.6873);
            
SetPlayerInterior(playerid10);
            
pInfo[playerid][EntrouAgencia] = 3;//<<<
                    
SetPlayerVirtualWorld(playerid15);
            
SetCameraBehindPlayer(playerid);
            return 
1;
        }

//SAIR AGENCIA
              
if(IsPlayerInRangeOfPoint(playerid2.0246.4077107.60761003.2188)) // Agência
        
{
            if(
pInfo[playerid][EntrouAgencia] == 1)
            {
                
SetPlayerPos(playerid1310.3708,-1370.8752,13.5204); // LS
                
SetPlayerFacingAngle(playerid181.6691);
                
SetPlayerInterior(playerid0);
                
pInfo[playerid][EntrouAgencia] = 0;
                            
SetPlayerVirtualWorld(playerid0); 
                
GameTextForPlayer(playerid"~w~Los Santos"30001);
            }
            else if(
pInfo[playerid][EntrouAgencia] == 2)
            {
                
SetPlayerPos(playerid, -2650.2886376.03646.1563); // SF
                
SetPlayerPos(playerid, -2227.2854251.970035.3203);
                
SetPlayerFacingAngle(playerid317.8766);
                
SetPlayerInterior(playerid0);
                
pInfo[playerid][EntrouAgencia] = 0;
                            
SetPlayerVirtualWorld(playerid0); 
                
GameTextForPlayer(playerid"~w~San Fierro"30001);
            }
            else if(
pInfo[playerid][EntrouAgencia] == 3)
            {
                
SetPlayerPos(playerid1952.82141342.840315.3672); // LV
                
SetPlayerFacingAngle(playerid269.9011);
                
SetPlayerInterior(playerid0);
                
pInfo[playerid][EntrouAgencia] = 0;
                            
SetPlayerVirtualWorld(playerid0); 
                
GameTextForPlayer(playerid"~w~Las Venturas"30001);
            } 
powerths is offline   Reply With Quote
Old 24/09/2017, 07:03 PM   #8
C4rtm4n
Gangsta
 
C4rtm4n's Avatar
 
Join Date: Jul 2017
Location: South Park
Posts: 657
Reputation: 15
Default Re: Player se encontrando em Interiores??

Poseidon eu te expliquei pelk WhatsApp usa

Code:
SetPlayerVirtualWorld(playerid, 1); // na agencia de ls
dps na saida
SetPlayerVirtualWorld(playerid, 0);

na entrada de Sf

SetPlayerVirtualWorld(playerid, 2);

na saida de SF

SetPlayerVirtualWorld(playerid, 0);
simples.
__________________
No Projects At the moment


Last edited by C4rtm4n; 24/09/2017 at 08:27 PM.
C4rtm4n is offline   Reply With Quote
Reply

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
[Off] Encontrando velhos amigos :P Victor' Português/Portuguese 25 27/04/2014 05:54 AM
[FilterScript] Encontrando id WLSF Lançamentos/Releases 9 26/10/2013 10:10 AM
[Ajuda] Não encontrando o cofre org 'Sony Português/Portuguese 12 19/09/2012 04:01 PM
[Ajuda]Teleport para interiores e Objetos em Interiores Bleed_Out Português/Portuguese 7 14/06/2011 08:17 PM


All times are GMT. The time now is 12:43 PM.


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