Checkpoint
#1

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.
Reply
#2

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.
Reply
#3

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

Use:

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

For easy multiple checkpoints.
Reply
#5

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); //
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)