Checkpoint not working.
#1

So when I do a Checkpoint, (for a GPS thing) and I have a command to make it show up, but right when you make the checkpoint it send the message for when you enter even if you are not in the check point here is the codes

Код:
public OnPlayerEnterCheckpoint(playerid)
	{
	DisablePlayerCheckpoint(playerid);
    	SendClientMessage(playerid, COLOR_RED, "You have reached your destination!");
    	return 1;
	}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{	
        if(!strcmp(cmdtext, "/gps lspd"))
	{
	    SendClientMessage(playerid, COLOR_RED, "GPS Set to LSPD-Follow the Red Checkpoint");
    	SetPlayerCheckpoint(playerid,1529.5492,-1674.8779,13.3828,268.7893);
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Checkpoint not working. - by ajmac22 - 29.11.2012, 22:44
Re: Checkpoint not working. - by PlayLSX_Founder - 30.11.2012, 00:19
Re: Checkpoint not working. - by Kreyg - 30.11.2012, 00:25
Re: Checkpoint not working. - by ajmac22 - 30.11.2012, 01:27
Re: Checkpoint not working. - by cluckintucker - 30.11.2012, 01:30

Forum Jump:


Users browsing this thread: 1 Guest(s)