SA-MP Forums Archive
Problems Again :( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems Again :( (/showthread.php?tid=535079)



Problems Again :( - nightday - 01.09.2014

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


Re: Problems Again :( - meitaredri - 01.09.2014

Like I told you last thread you opened, SAN ANDREAS MULTI PLAYER blocked tha able to see more then 1 CHECKPOINT.

You have cross the samp limit.
You can' make a check points so close SAMP allowed to see only one Checkpoint not three.
It's not script problem , you have just need have to change the position.

NOTE: i'll repeat, you can't see on your screen more then 1 check point.
Hope I helped. +rep if you can.


Re: Problems Again :( - The__ - 01.09.2014

Try using different virtual worlds for each warhouse/casino? I'm honestly confused on what you're trying to do.


Re: Problems Again :( - meitaredri - 01.09.2014

Quote:
Originally Posted by The__
Посмотреть сообщение
Try using different virtual worlds for each warhouse/casino? I'm honestly confused on what you're trying to do.
dude it's a basic knowledge that you can't see more the 1 check point on your screen , SAMP blocked that abilty , he can make pickups or i don't know but he can't make three Checkpoints so close, and believe me i'm sure.


Re: Problems Again :( - Stinged - 01.09.2014

Quote:
Originally Posted by meitaredri
Посмотреть сообщение
dude it's a basic knowledge that you can't see more the 1 check point on your screen , SAMP blocked that abilty , he can make pickups or i don't know but he can't make three Checkpoints so close, and believe me i'm sure.
He is using a streamer. He can use as much as checkpoints as he wants with a streamer.
https://sampforum.blast.hk/showthread.php?tid=102865

Warhouses aren't mixing with each other. Look at your code, it's exactly the same for Warhouse1-2-3.
You're not changing the interior and position.]

EDIT: Also, streaming checkpoints is showing the checkpoint when you're near it and destroying it when you're not.
So you can only see 1 checkpoint, when you go near another one, you can't see the first checkpoint, but you can't see the second.


Re: Problems Again :( - meitaredri - 01.09.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
He is using a streamer. He can use as much as checkpoints as he wants with a streamer.
https://sampforum.blast.hk/showthread.php?tid=102865
Samp wiki:
Код:
Checkpoints are asynchronous, meaning only one can be shown at a time.
maybe SAMP able with it or someone slove it , I have not heard of any solution.

Sorry.

EDIT:
He is trying to see 3 check points next to each other ,it is just impossible for my knowledge.
And if it's not the problem, try to expain it again.



Re: Problems Again :( - Stinged - 01.09.2014

Quote:
Originally Posted by meitaredri
Посмотреть сообщение
Samp wiki:
Код:
Checkpoints are asynchronous, meaning only one can be shown at a time.
If you read all of it..
Quote:

Checkpoints are asynchronous, meaning only one can be shown at a time. To 'stream' checkpoints (only show them when players are close enough), use a checkpoint streamer.




Re: Problems Again :( - nightday - 01.09.2014

Guys i Dont Know Any Things But Can Any One Help Me To Add in This FS To Fix it And + Rep To i dont know any one here now But Stinged i Have Streamer Lol i Get Errors From Frist Time
Please Help i Want Fix it
And SetPlayerVirtualWorld(playerid, );
i try it not fix this problems


Re: Problems Again :( - Sledgehammer - 01.09.2014

The Dynamic Check point will show to what ever your nearest to. Its currently not possible to view 3 check point at a time. This isn't a script related problem either.


Re: Problems Again :( - Mauzen - 01.09.2014

You should rather use pickups for that. Thats usually used for interior entries and exits.