Problems Again :(
#1

See i Have 3 WarHouse And 2 Casino But There is problems to when im in WarHouse its Mix With All WarHouse To i Have 3 Checkpoints From 1 WarHouse To i Exit Any one Fix to Me to set Single intertior to not mix with other and this problems with Casino See photo Who Help Me i Give him +rep





This All Line Enter And Exit
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(1293.349609,5.497305,  1001.009338,1.0);
 
ExWarHouse2 CreateDynamicCP(1292.349609,5.497305,  1001.009338,1.0);
 
ExWarHouse3 CreateDynamicCP(1294.349609,5.497305,  1001.009338,1.0);
 
RoyalCasino CreateDynamicCP(2089.083251,1515.569213,    10.820312,1.0);
 
ExRoyalCasino CreateDynamicCP(1132.039428,-15.154042,  1000.679687,1.0);
 
PinkCasinoLVPD CreateDynamicCP(2017.4207,1103.3944,10.8203,1.0);
 
ExPinkCasinoLVPD CreateDynamicCP(1134.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;

Help +Rep
Reply


Messages In This Thread
Problems Again :( - by nightday - 01.09.2014, 19:56
Re: Problems Again :( - by meitaredri - 01.09.2014, 20:26
Re: Problems Again :( - by The__ - 01.09.2014, 20:26
Re: Problems Again :( - by meitaredri - 01.09.2014, 20:30
Re: Problems Again :( - by Stinged - 01.09.2014, 20:34
Re: Problems Again :( - by meitaredri - 01.09.2014, 20:36
Re: Problems Again :( - by Stinged - 01.09.2014, 20:38
Re: Problems Again :( - by nightday - 01.09.2014, 21:09
Re: Problems Again :( - by Sledgehammer - 01.09.2014, 21:35
Re: Problems Again :( - by Mauzen - 01.09.2014, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)