[Help]Checkpoints Not Load
#1

Hello All
Today i Making The Checkpoints + interior
but the checkpoints not load the interior and pos only 1 its load this
PHP код:
 ClownsPocket CreateDynamicCP(2227.2625,1838.7096,10.8203,1.0);
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == ClownsPocket)
     {
     if(!
IsPlayerInAnyVehicle(playerid))
       {
        
SetPlayerInterior(playerid12);
        
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
        
SetPlayerVirtualWorld(playerid,8);
      }
   }
   return 
1;
}
   return 
1;
}
public 
OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == ExClownsPocket)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid,2221.0005,1838.7570,10.8203);
    
SetPlayerVirtualWorld(playerid,0);
    }
    return 
1;

this not load interior and pos
PHP код:
 Casino CreateDynamicCP(2166.1289,2165.0969,10.8203,1.0);
 
RedsandsWest CreateDynamicCP(1658.4846,2250.0439,11.0701,1.0);
 
RoyalCasino CreateDynamicCP(2090.0520,1514.6766,10.8203,1.0);
 
PinkCasinoLVPD CreateDynamicCP(2014.8260,1107.0189,10.8203,1.0);
 
 public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == RoyalCasino)
   {
   if(!
IsPlayerInAnyVehicle(playerid))
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
    
SetPlayerVirtualWorld(playerid,12);
    }
  }
   if(
checkpointid == PinkCasinoLVPD)
   {
   if(!
IsPlayerInAnyVehicle(playerid))
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
    
SetPlayerVirtualWorld(playerid,11);
    }
  }
   if(
checkpointid == Casino)
   {
   if(!
IsPlayerInAnyVehicle(playerid))
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
    
SetPlayerVirtualWorld(playerid,10);
    }
  }
   if(
checkpointid == RedsandsWest)
   {
   if(!
IsPlayerInAnyVehicle(playerid))
   {
    
SetPlayerInterior(playerid12);
    
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
    
SetPlayerVirtualWorld(playerid,9);
    }
  }
   return 
1;
}
   return 
1;
}
public 
OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
   if(
checkpointid == ExRedsandsWest)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid1658.7145,2253.7153,10.8203);
    
SetPlayerVirtualWorld(playerid,0);
    }
   if(
checkpointid == ExPinkCasinoLVPD)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2019.1819,1100.4955,10.8203);
    
SetPlayerVirtualWorld(playerid,0);
    }
   if(
checkpointid == ExCasino)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2162.1414,2159.8154,10.8203);
    
SetPlayerVirtualWorld(playerid,0);
    }
   if(
checkpointid == ExRoyalCasino)
   {
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playerid2084.7068,1518.6965,10.8203);
    
SetPlayerVirtualWorld(playerid,0);
    }
   return 
1;

please help +rep
Reply
#2

help please
Reply
#3

Try reediting:
PHP код:
From 
CreateDynamicCP 
CreateCheckpoint
From 
OnPlayerEnterDynamicCP 
OnPlayerEnterCheckpoint 
And so on.
Reply
#4

Quote:
Originally Posted by weedxd
Посмотреть сообщение
Try reediting:
PHP код:
From 
CreateDynamicCP 
CreateCheckpoint
From 
OnPlayerEnterDynamicCP 
OnPlayerEnterCheckpoint 
And so on.
i dont know now
u can example to know please +rep
+rep for help my problem interior not load + pos in checkpoints
Reply
#5

Guys Please Help
Reply
#6

Quote:
Originally Posted by mant
Посмотреть сообщение
Guys Please Help
An example:
PHP код:
 Casino CreateCheckpoint(2166.1289,2165.0969,10.8203,1.0);
 
RedsandsWest CreateCheckpoint(1658.4846,2250.0439,11.0701,1.0);
 
RoyalCasino CreateCheckpoint(2090.0520,1514.6766,10.8203,1.0);
 
PinkCasinoLVPD CreateCheckpoint(2014.8260,1107.0189,10.8203,1.0);
 
 public 
OnPlayerEnterCheckpoint(playeridcheckpointid)

This is how you used it:
PHP код:
 Casino CreateDynamicCP(2166.1289,2165.0969,10.8203,1.0);
 
RedsandsWest CreateDynamicCP(1658.4846,2250.0439,11.0701,1.0);
 
RoyalCasino CreateDynamicCP(2090.0520,1514.6766,10.8203,1.0);
 
PinkCasinoLVPD CreateDynamicCP(2014.8260,1107.0189,10.8203,1.0);
 
 public 
OnPlayerEnterDynamicCP(playeridcheckpointid)

Reply
#7

Quote:
Originally Posted by weedxd
Посмотреть сообщение
An example:
PHP код:
 Casino CreateCheckpoint(2166.1289,2165.0969,10.8203,1.0);
 
RedsandsWest CreateCheckpoint(1658.4846,2250.0439,11.0701,1.0);
 
RoyalCasino CreateCheckpoint(2090.0520,1514.6766,10.8203,1.0);
 
PinkCasinoLVPD CreateCheckpoint(2014.8260,1107.0189,10.8203,1.0);
 
 public 
OnPlayerEnterCheckpoint(playeridcheckpointid)

This is how you used it:
PHP код:
 Casino CreateDynamicCP(2166.1289,2165.0969,10.8203,1.0);
 
RedsandsWest CreateDynamicCP(1658.4846,2250.0439,11.0701,1.0);
 
RoyalCasino CreateDynamicCP(2090.0520,1514.6766,10.8203,1.0);
 
PinkCasinoLVPD CreateDynamicCP(2014.8260,1107.0189,10.8203,1.0);
 
 public 
OnPlayerEnterDynamicCP(playeridcheckpointid)

when i making this i will back to the interior mix to no there Thread to the interior all 12
guys help please how to fix it +rep
Reply
#8

help please
Reply
#9

Help Please
Reply
#10

Any One
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)