Checkpoints
#1

i have made a command where it puts a checkpoint on the map but when i enter it, it doesnt disappear even though i have this
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,6,-104.69,72.71,3.72))
	{
		DisablePlayerCheckpoint(playerid);
		SetPlayerCheckpoint(playerid,-153.2811,152.6073,4.9356,6);
	}
	return 1;
}
Doesnt even set the next checkpoint either. any ideas?
Reply
#2

Make sure it's the RIGHT TYPE fo checkpoint, meaning there is a difference between checkpoint and racecheckpoint.

Try to show the checkpoint line of when it set's it.
Reply
#3

Код:
CMD:fertilize(playerid,params[])
{
	if(IsPlayerInRangeOfPoint(playerid,2,-104.69,72.71,3.72))
	{
	    SetPlayerCheckpoint(playerid,-128.4113,108.7230,3.1172,5);
	}
	return 1;
}
Reply
#4

You need to set this
if(IsPlayerInRangeOfPoint(playerid,6,-104.69,72.71,3.72))

To the values here
SetPlayerCheckpoint(playerid,-128.4113,108.7230,3.1172,5);

if(IsPlayerInRangeOfPoint(playerid,6,-128.4113,108.7230,3.1172))
Reply
#5

-.- oh thanks, didnt see that lol +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)