2 Checkpoints!!
#1

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

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

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

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

BUMP!! Plz Help!
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)