How to set a waypoint to show another waypoint?
#1

Okay, so, I want it so that when people load cargo, and enter the waypoint, it will send another waypoint for them to deliver, I know how to give cash for entering the waypoint, but, this is a black spot, What I have so far:

Код:
CMD:loadcargo(playerid,params[])
{
	 if(IsPlayerInVehicle(playerid,476))
	 {
	    SetPlayerCheckpoint(playerid,12,2107.5664,-2416.1194,13.5469,231.6548,0,0,0,0,0,0);
	    SendClientMessage(playerid,COLOR_YELLOW,"Go to the waypoint to load Cargo");
            return 1;
	 }
}
Reply
#2

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint

Then onplayerentercheckpoint checkpoint id/name Giveplayermoney x
Reply
#3

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint

Just put your code on the line(s) before return 1, and your good to go.
Reply
#4

How do I get the Checkpoint ID?
Reply
#5

There is none because only one checkpoint can be shown at a time. Only streamers use checkpointids.
Reply
#6

Quote:
Originally Posted by MMOSlot
Посмотреть сообщение
How do I get the Checkpoint ID?
Download streamer's include and plugin, than you can replace the callback:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
for
pawn Код:
public OnPlayerEnterDynamicCheckpoint(playerid, checkpointid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)