Checkpoints Mix :(
#1

Hello,
My Checkpoints Mix When i Leave Warhouse1 And Warhouse2 And Warhouse3 And For Casino RoyalCasino And Pink Casino i SetPlayerPos And its not Fix The Mix Please help
PHP код:
#include <a_samp>
#include <Streamer>
new WarHouse1;
new 
WarHouse2;
new 
WarHouse3;
new 
ExWarHouse1;
new 
ExWarHouse2;
new 
ExWarHouse3;
new 
RoyalCasino;
new 
ExRoyalCasino;
new 
PinkCasinoLVPD;
new 
ExPinkCasinoLVPD;
public 
OnGameModeInit()
{
 
WarHouse1 CreateDynamicCP(1228.239990,182.513992,    20.278369,1.0);
 
WarHouse2 CreateDynamicCP(2801.729736,2574.841796,    10.820312,1.0);
 
WarHouse3 CreateDynamicCP(2847.195312,983.677795,    10.750000,1.0);
 
ExWarHouse1 CreateDynamicCP(1292.349609,5.497305,  1001.009338,1.0);
 
ExWarHouse2 CreateDynamicCP(1292.349609,5.497305,  1001.009338,1.0);
 
ExWarHouse3 CreateDynamicCP(1292.349609,5.497305,  1001.009338,1.0);
 
RoyalCasino CreateDynamicCP(2089.083251,1515.569213,    10.820312,1.0);
 
ExRoyalCasino CreateDynamicCP(1133.039428,-15.154042,  1000.679687,1.0);
 
PinkCasinoLVPD CreateDynamicCP(2017.4207,1103.3944,10.8203,1.0);
 
ExPinkCasinoLVPD CreateDynamicCP(1133.039428,-15.154042,  1000.679687,1.0);
}
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == WarHouse1)
     {
        
SetPlayerInterior(playerid18);
        
SetPlayerPos(playerid1302.519897,-1.787510,1001.028259);
        
SendClientMessage(playerid,-1," Welcome To WarHouse");
      }
   if(
checkpointid == WarHouse2)
   {
      
SetPlayerInterior(playerid18);
      
SetPlayerPos(playerid1302.519897,-1.787510,1001.028259);
      
SendClientMessage(playerid,-1,"Welcome To WarHouse");
    }
   if(
checkpointid == WarHouse3)
   {
    
SetPlayerInterior(playerid18);
    
SetPlayerPos(playerid1302.519897,-1.787510,1001.028259);
    
SendClientMessage(playerid,-1,"Welcome To WarHouse");
    }
   if(
checkpointid == RoyalCasino)
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid1118.8878,     -10.2737,     1002.0859 );
    
SendClientMessage(playerid,-1,"Welcome To RoyalCasino");
    }
   if(
checkpointid == PinkCasinoLVPD)
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid1118.8878,     -10.2737,     1002.0859);
    
SendClientMessage(playerid,-1,"You Are Left RoyalCasino");
    }
    
   return 
1;
}
public 
OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == ExPinkCasinoLVPD)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2019.1819,1100.4955,10.8203);
    
SendClientMessage(playerid,-1,"You Are Left PinkCasino");
    }
   if(
checkpointid == ExRoyalCasino)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2084.7068,1518.6965,10.8203);
    
SendClientMessage(playerid,-1,"You Are Left RoyalCasino");
    }
   if(
checkpointid == ExWarHouse1)
   {
        
SetPlayerInterior(playerid0);
        
SetPlayerPos(playerid1229.8677,186.0084,19.7882);
        
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
   if(
checkpointid == ExWarHouse2)
   {
      
SetPlayerInterior(playerid0);
      
SetPlayerPos(playerid2798.7227,2578.1279,10.8203);
      
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
   if(
checkpointid == ExWarHouse3)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2843.9067,983.8740,10.7500);
    
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
    
   return 
1;

Reply
#2

Help Please+Rep
Reply
#3

What is the problem ? I didn't understand anything.
Reply
#4

Checkpoints
Quote:

public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(checkpointid == ExPinkCasinoLVPD)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2019.1819,1100.4955,10.8203);
SendClientMessage(playerid,-1,"You Are Left PinkCasino");
}
if(checkpointid == ExRoyalCasino)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2084.7068,1518.6965,10.8203);
SendClientMessage(playerid,-1,"You Are Left RoyalCasino");
}
if(checkpointid == ExWarHouse1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1229.8677,186.0084,19.7882);
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
}
if(checkpointid == ExWarHouse2)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2798.7227,2578.1279,10.8203);
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
}
if(checkpointid == ExWarHouse3)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2843.9067,983.8740,10.7500);
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
}

return 1;
}

its Mix Left To im in Warhouse3 And i ExWarhouse3 its Place in ExWarhouse1
And Casino PinkCasino Left its to RoyalCasino Place Left
See photo to know This When i Enter

This When im in RoyalCasino

This When i Left
Mixed With Left Pink Casino And WarHouse To Have this Problems Any one help me +rep
And Warhouse See i Enter Here

This Here When im in Warhouse

This Here When i Exit its Mix With Spawn Left how to fix please +rep
Reply
#5

Any one know how to fix this problems +rep
Reply
#6

Show us the exit from the checkpoints
Reply
#7

Quote:
Originally Posted by lulo356
Посмотреть сообщение
Show us the exit from the checkpoints
This For All
PHP код:
public OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == ExPinkCasinoLVPD)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2019.1819,1100.4955,10.8203);
    
SendClientMessage(playerid,-1,"You Are Left PinkCasino");
    }
   if(
checkpointid == ExRoyalCasino)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2084.7068,1518.6965,10.8203);
    
SendClientMessage(playerid,-1,"You Are Left RoyalCasino");
    }
   if(
checkpointid == ExWarHouse1)
   {
        
SetPlayerInterior(playerid0);
        
SetPlayerPos(playerid1229.8677,186.0084,19.7882);
        
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
   if(
checkpointid == ExWarHouse2)
   {
      
SetPlayerInterior(playerid0);
      
SetPlayerPos(playerid2798.7227,2578.1279,10.8203);
      
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
   if(
checkpointid == ExWarHouse3)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2843.9067,983.8740,10.7500);
    
SendClientMessage(playerid,-1,"You Are Leave WarHouse");
   }
    
   return 
1;

Reply
#8

any one help+rep
Reply
#9

Can You Take A Video Of Your Problem ? And Uploaded In The www.rodfile.com Thanks :X
Reply
#10

Lol i cant make videos come to my server see problems and off again this ip 41.130.20.20:7777
To any one come sec to fix with me problems please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)