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



Help - se3a - 26.03.2017

Hello
need some help when player leave pickup
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == MenuClukin)
      {
      if(!
IsPlayerInAnyVehicle(playerid))
        {
         
ShowSky(playerid);
         
ShowSkyText[playerid] = 1;
       }
    }
    return 
1;

too adding this code to off it if player leave pickup
PHP код:
    ShowSkyText[playerid] = 0;
    
HideSky(playerid); 



Re: Help - se3a - 26.03.2017

i can make checkpoint appear for player when he very near it ??
becuse i cant make checkpoints in interior becuse its will be bugged he can see checkpoints menu and cant see checkpoint exit
PHP код:
ExCluckin2 CreateDynamicCP(364.9749,-11.8440,1001.8516,1.0,2); 



Re: Help - Mencent - 26.03.2017

Hello!

You must work with the streamer then you have these callbacks:
PHP код:
forward OnPlayerEnterDynamicCP(playeridSTREAMER_TAG_CP checkpointid);
forward OnPlayerLeaveDynamicCP(playeridSTREAMER_TAG_CP checkpointid); 
Your 2nd question:
Yes, you can. I think first you fix your 1st problem.