23.06.2016, 19:28
Is there a way to define checkpoints and get this?
for example
I want later on to get if the checkpoint is one of the above how can I do that? like
I do not know how to set the checkpoints for multiple so please help me I just gave the idea and I need help
for example
Код:
new Float:PizzamanCPs[8][4] =
{
{ 2236.3997,167.3553,28.1535, 3.0 },
{ 2363.3560,116.1356,28.4416, 3.0 },
{ 2374.1240,42.2868,28.4416, 3.0 },
{ 2392.2939,-54.9637,28.1536, 3.0 },
{ 1291.9042,281.5284,19.5614, 3.0 },
{ 1277.0186,370.8626,19.5547, 3.0 },
{ 1352.0980,348.4374,20.5009, 3.0 },
{ 1402.4236,286.2011,19.5547, 3.0 }
};
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CheckPoint = PizzamanCPs);
{
//do blablabla
}
return 1;
}


