How to set a waypoint to show another waypoint? - 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: How to set a waypoint to show another waypoint? (
/showthread.php?tid=511093)
How to set a waypoint to show another waypoint? -
MMOSlot - 03.05.2014
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;
}
}
Re: How to set a waypoint to show another waypoint? -
Flake. - 03.05.2014
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Then onplayerentercheckpoint checkpoint id/name Giveplayermoney x
Re: How to set a waypoint to show another waypoint? -
Abagail - 03.05.2014
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.
Re: How to set a waypoint to show another waypoint? -
MMOSlot - 04.05.2014
How do I get the Checkpoint ID?
Re: How to set a waypoint to show another waypoint? -
Vince - 04.05.2014
There is none because only one checkpoint can be shown at a time. Only streamers use checkpointids.
Re: How to set a waypoint to show another waypoint? -
Galletziz - 04.05.2014
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)