SA-MP Forums Archive
2 Checkpoints!! - 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: 2 Checkpoints!! (/showthread.php?tid=311590)



2 Checkpoints!! - Captain_Mani - 17.01.2012

Ok plz help me now.. I am stucked in here..
I made a checkpoint to enter a bar. Here is the code for it:

Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerCheckpoint(playerid, -314.1696472168, 1774.7232666016, 42.640625, 2.0);
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	SetPlayerInterior(playerid, 11);
	SetPlayerPos(playerid, 502.1585,-69.2982,998.7578);
  	return 1;
}
And it works.. But now I want to put another checkpoint inside the bar near the reception, when we go to that checkpoint a dialog will appear and we could buy a drink.. But I dont know to put another checkpoint. It gives errors when I try to compile. Plz help.!


Re: 2 Checkpoints!! - Stigg - 17.01.2012

For multiple checkpoints you will need a streamer, this is a good all rounder:

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


Re: 2 Checkpoints!! - Captain_Mani - 17.01.2012

Quote:
Originally Posted by Stigg
Посмотреть сообщение
For multiple checkpoints you will need a streamer, this is a good all rounder:

https://sampforum.blast.hk/showthread.php?tid=102865
I cant understand how to add those natives and all.. plz explain me..


Re: 2 Checkpoints!! - Captain_Mani - 18.01.2012

BUMP!! Plz Help!


Re: 2 Checkpoints!! - thimo - 18.01.2012

You should give every checkpoint a name and then use the name in onplayerentercheckpoint.