SA-MP Forums Archive
About CreateDynamicCP - 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: About CreateDynamicCP (/showthread.php?tid=601058)



About CreateDynamicCP - BlazeOfGlory - 16.02.2016

Hello Guys
My Problem i made the Checkpoints its good when im #Enter / But when im Exit not load fast idk why im in checkpoints exit stay and not move to out why ? enter working good but exit no what is wrong to not exit ?
this Exit
PHP код:
   if(checkpointid == ExBurger50)
     {
        
SetPlayerInterior(playerid0);
        
SetPlayerPos(playerid,1208.7490,-917.7995,43.0514);
        
SetPlayerVirtualWorld(playerid,0);
        
SetCameraBehindPlayer(playerid);
      } 
this #Enter its working very good
PHP код:
   if(checkpointid == Burger50)
     {
     if(!
IsPlayerInAnyVehicle(playerid))
       {
        
SetPlayerInterior(playerid10);
        
SetPlayerPos(playerid365.6372,-72.8421,1001.5078);
        
SetPlayerVirtualWorld(playerid,50);
      }
   } 
Why its not working good like #Enter
Help Me Please :*
This Full Code For ExBruger
PHP код:
new ExBurger50
PHP код:
ExBurger50 CreateDynamicCP(362.8540,-75.1511,1001.5078,1.0,50); 
PHP код:
   if(checkpointid == ExBurger50)
     {
      if(!
IsPlayerInAnyVehicle(playerid))
        {
         
SetPlayerInterior(playerid0);
         
SetPlayerPos(playerid,1208.7490,-917.7995,43.0514);
         
SetPlayerVirtualWorld(playerid,0);
         
SetCameraBehindPlayer(playerid);
      }
   } 
why its not out to this Pos
PHP код:
1208.7490,-917.7995,43.0514 
?
not there somthings wrong in code!
https://www.youtube.com/watch?v=xonO...ature=********* Watch


Re: About CreateDynamicCP - MicroKyrr - 16.02.2016

Код:
   if(checkpointid == ExBurger50) 
     { 
      if(!IsPlayerInAnyVehicle(playerid))
        {
         SetPlayerInterior(playerid, 0); 
         SetPlayerPos(playerid,1208.7490,-917.7995,43.0514); 
         SetPlayerVirtualWorld(playerid,0); 
         SetCameraBehindPlayer(playerid); 
      } 
   }
:/ LoL


Re: About CreateDynamicCP - BlazeOfGlory - 16.02.2016

Quote:
Originally Posted by MicroKyrr
Посмотреть сообщение
Код:
   if(checkpointid == ExBurger50) 
     { 
      if(!IsPlayerInAnyVehicle(playerid))
        {
         SetPlayerInterior(playerid, 0); 
         SetPlayerPos(playerid,1208.7490,-917.7995,43.0514); 
         SetPlayerVirtualWorld(playerid,0); 
         SetCameraBehindPlayer(playerid); 
      } 
   }
:/ LoL
not fix any things
see



Re: About CreateDynamicCP - Jefff - 16.02.2016

Do you have
ExBurger50 = CreateDynamicCP
?
or missing ExBurger50 and only is
CreateDynamicCP..


Re: About CreateDynamicCP - BlazeOfGlory - 16.02.2016

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Do you have
ExBurger50 = CreateDynamicCP
?
or missing ExBurger50 and only is
CreateDynamicCP..
PHP код:
ExBurger50 CreateDynamicCP(362.8540,-75.1511,1001.5078,1.0,50); 
here man
i have it


Re: About CreateDynamicCP - astanalol - 17.02.2016

not there any somthings wrong in u script but what this bug omg :O


Re: About CreateDynamicCP - BlazeOfGlory - 17.02.2016

Watch My Video To Know what i mean in Frist Comments
https://www.youtube.com/watch?v=xonO...ature=*********


Re: About CreateDynamicCP - BlazeOfGlory - 17.02.2016

Quote:
Originally Posted by astanalol
Посмотреть сообщение
not there any somthings wrong in u script but what this bug omg :O
yea i dont know what is that :/


Re: About CreateDynamicCP - Sew_Sumi - 17.02.2016

What callback are you using to check entering the checkpoints?


Re: About CreateDynamicCP - BlazeOfGlory - 17.02.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
What callback are you using to check entering the checkpoints?
this enter CP
Enter And Exit not there diffrent in code i made it but exit not working good like u see
PHP код:
new Burger50
PHP код:
Burger50 CreateDynamicCP(1205.4768,-918.0059,43.0854,1.0); 
PHP код:
   if(checkpointid == Burger50)
     {
     if(!
IsPlayerInAnyVehicle(playerid))
       {
        
SetPlayerInterior(playerid10);
        
SetPlayerPos(playerid365.6372,-72.8421,1001.5078);
        
SetPlayerVirtualWorld(playerid,50);
      }
   }