Check points
#1

Hello!
I'm trying to make a job and i don't understund the checkpoints becaose is not so with pickup's because they i think is not the "if(pickupid == ...))"
can anybody say how to make a simple job with 3 checkpoint's

if(strcmp(cmd, "/ruta1", true) == 0)
{
if(IsPlayerInVehicle(playerid,437))
{
SetPlayerCheckpoint(playerid,x,z,y,size);
}
return 1;
}

what to put next for the 3th checkpoint?
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInVehicle(playerid,437))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,x,z,y,size);
return 1;
}
return 1;
}


sry for bad english! If they are some writing mistakes please correct me!
Reply
#2

You can normally have one checkpoint at place. To have more, you will need to use a streamer, or create checkpoint only, when player is close to this.

The function to create a checkpoint is SetPlayerCheckpoint (marker) and SetPlayerRaceCheckpoint (from races).
Reply
#3

can you give me an example vith streamer i don't know it because i am a beginer!
Reply
#4

For example, you can use Incognito's Streamer Plugin... Function to create marker from this streamer is CreateDynamicCP. With this you will can create more than 1 checkpoint at the same time.
Reply
#5

i dont need 2 cp-s at same time, i need when the player enter the 1. cp then the 1. cp disappears and the 2. cp shows and when the player enter the 2. cp then the 2. cp disappears and the 3. cp shows etc..
Reply
#6

i can understand what are you saying, you want to reach check point then it could create another one
use this and
pawn Код:
if (IsPlayerInCheckpoint(playerid))
{
Set whatever u want
}
for more info check this link
wiki.sa-mp.com/wiki/Function:SetPlayerCheckpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)