SA-MP Forums Archive
Checkpoint - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checkpoint (/showthread.php?tid=235968)



Checkpoint - Alex_Obando - 06.03.2011

Hey, I added a checkpoint:

Код:
public OnPlayerSpawn(playerid)
{

	SetPlayerCheckpoint(playerid, 2957.0884, -1485.0145, 1.6247, 2.0);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{

	    ShowPlayerDialog(playerid, MainDialog, DIALOG_STYLE_LIST, " Do you want to go in the cruise?", "Yes\nNo", "Enter", "Cancel");
	    PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
}
But.....When I put other checkpoint on the OnPlayerSpawn it just appears one, Plese help.


Re: Checkpoint - bhaveshnande - 06.03.2011

In SAMP you can see only one checkpoint at a time. If you want to see more than one checkpoint at a time you will need to use Streamer Plugin. You could try Incognitos Streamer Plugin.


Respuesta: Checkpoint - Alex_Obando - 06.03.2011

Can some one give me some more specific answer...? I dont know how to use that, Please Help


Re: Checkpoint - Stigg - 06.03.2011

Use:

https://sampforum.blast.hk/showthread.php?tid=102865

For easy multiple checkpoints.


Respuesta: Checkpoint - Alex_Obando - 06.03.2011

Can some one make it for me?
And add a download link? I need one checkpoint here and here:


AddPlayerClass(269,2823.4739,1729.6138,26.7942,202 .8430,0,0,0,0,0,0); //
AddPlayerClass(269,2835.8623,1842.2155,15.8016,95. 1021,0,0,0,0,0,0); //


Re: Checkpoint - tanush - 06.03.2011

click here to download then if u wanna make a checkpoint, on top add 2 variable or w/e its called. First on top put
pawn Код:
#include streamer
Then under that put
pawn Код:
new check1;
new check2;
After Under OnGameModeInIt add

pawn Код:
check1 = CreateDynamicCP(playerid,2823.4739,1729.6138,26.7942,1.5,-1,-1,-1,100.0);
check2 = CreateDynamicCP(playerid, 2835.8623,1842.2155,15.8016,1.5,-1,-1,-1,100.0);
After go down and paste this
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == check1)
    {
    ShowPlayerDialog(playerid, MainDialog, DIALOG_STYLE_LIST, " Do you want to go in the cruise?", "Yes\nNo",  "Enter", "Cancel");
     }
if you want to another one, put
pawn Код:
else if(checkpointid == check2)
    {
        //BLAHBLAHBLAH
     }
so your script will look like
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == check1)
    {
    ShowPlayerDialog(playerid, MainDialog, DIALOG_STYLE_LIST, " Do you want to go in the cruise?", "Yes\nNo",  "Enter", "Cancel");
     }
    else if(checkpointid == check2)
    {
        //BLAHBLAHBLAH
     }
      return 1;
}
ignore the { } staying in random place. just fix those loose shit