Need help with checkpoints.
#1

So everything working fine, but when i go on checkpoint 1 it shows me checkpoint 3.
So there is something missing. Please help me

Код:
new Ccp[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	// Checkpoints
	{
	    Ccp[playerid] =1;
	    CreateDynamicCP(1038.1439,-1339.7784,13.7266, 1, 0, 0, 0, 50); // gun shop enter
	}
	{
	    Ccp[playerid] =2;
	    CreateDynamicCP(285.3838,-40.1943,1001.5156, 1, 0, 1, 0, 50); //gun shop exit
	}
	{
	    Ccp[playerid] =3;
	    CreateDynamicCP(296.5040,-38.1360,1001.5156, 1, 0, 1, 0, 50);
	}
	return 1;
}


public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(Ccp[playerid] ==1)
    {
		SetPlayerPos(playerid,288.2349,-38.5503,1001.5156);
		SetPlayerInterior(playerid,1);
    }
    if(Ccp[playerid] ==2)
    {
    	SetPlayerPos(playerid,1038.4999,-1336.6597,13.7266);
		SetPlayerInterior(playerid,0);
	}
	if(Ccp[playerid] ==3)
	{
	    ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "hi","Buy","Cancel");
	}
}
Reply


Messages In This Thread
Need help with checkpoints. - by Majava - 04.08.2013, 11:18
Re: Need help with checkpoints. - by Facerafter - 04.08.2013, 11:30
Re: Need help with checkpoints. - by Majava - 04.08.2013, 12:59
Re: Need help with checkpoints. - by Majava - 04.08.2013, 14:22
Re: Need help with checkpoints. - by 2KY - 04.08.2013, 14:47
Re: Need help with checkpoints. - by Majava - 04.08.2013, 15:24
Re: Need help with checkpoints. - by Majava - 05.08.2013, 11:50
Re: Need help with checkpoints. - by Majava - 07.08.2013, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)