[Ajuda] Pickup Bugado й checkpoint
#1

O Meu Pickup quando eu fico em cima dele , ele desaparece eu gostaria de deixar ele estбvel.

Prints Do Pickup:

http://i.imgur.com/K3RE1j9.png
http://i.imgur.com/RRSt4zT.png
http://i.imgur.com/VGUX6Wm.png

Code:

News criadas:

PHP код:
new EntradaPickup
new 
SaidaPickup
public 
OnGameModeInit()
{
        
EntradaPickup CreatePickup(123921153.9978, -1772.073916.5992, -1);
    
SaidaPickup CreatePickup(123921153.9978,-1772.0739,16.5992, -1);
    
Create3DTextLabel("AGENCIA DE EMPREGOS",BRANCO,1153.9978,-1772.0739,16.5992,15,0);
         return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == SaidaPickup)
{
     
SetPlayerInterior(playerid0); 
     
SetPlayerPos(playerid1153.9978, -1772.073916.5992); 
}
    if(
pickupid == EntradaPickup)
{
     
SetPlayerInterior(playerid3); 
     
SetPlayerPos(playerid1494.3251951304.9428711093.289062);
}
Comandos Criados
CMD
:entrar(playeridparams [])
{
   if(
IsPlayerInRangeOfPoint(playerid2.01153.9978,-1772.0739,16.5992))
   {
       
SetPlayerInterior(playerid3); 
       
SetPlayerPos(playerid1494.3251951304.9428711093.289062); 
   }
   return 
true
}
CMD:sair(playeridparams []) 
{
  
   if(
IsPlayerInRangeOfPoint(playerid2.01494.37171304.05211093.2891))
   {
      
SetPlayerInterior(playerid0); 
      
SetPlayerPos(playerid1153.9978, -1772.073916.5992); 
   }
   return 
true;

Agora o meu checkpoint fica aparecendo no mapa sendo que botei ele dentro de um interior como eu faзo para ele desaparecer do mini mapa e do mapa й aparecer sу dentro do interior

PHP код:
Code:
new 
bool:onCheck[MAX_PLAYERS]; 
public 
OnPlayerSpawn(playerid)
{
   
SetPlayerCheckpoint(playerid1491.41881305.97921093.29642.0);
   
onCheck[playerid] = true;
   return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
onCheck[playerid]) // if it's true
    
{
        
GivePlayerMoney(playerid1000);
        
onCheck[playerid] = false;
    }
         return 
1;
    } 
Prints Do Check Point :
http://i.imgur.com/tV4ZiZi.png
http://i.imgur.com/04q2E0l.png
http://i.imgur.com/p7ZCNJO.jpg
Reply


Messages In This Thread
Pickup Bugado й checkpoint - by LuizReturns - 08.01.2017, 22:13
Re: Pickup Bugado й checkpoint - by RazorGuigo - 08.01.2017, 22:17
Re: Pickup Bugado й checkpoint - by LuizReturns - 08.01.2017, 23:02
Re: Pickup Bugado й checkpoint - by RazorGuigo - 08.01.2017, 23:06
Re: Pickup Bugado й checkpoint - by LuizReturns - 08.01.2017, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)