16.11.2011, 18:23
hello!
Im making some random checkpoints, but they only shown on the minimap, and when you get there you see no checkpoint.
i guess it is because i have no radius defined for them, and i don't know how to do that in what way i create them.
Here is the code
CODE:
Im making some random checkpoints, but they only shown on the minimap, and when you get there you see no checkpoint.
i guess it is because i have no radius defined for them, and i don't know how to do that in what way i create them.
Here is the code
CODE:
pawn Код:
new Float:Randommission[][4] =
{
{405.7452,2442.8865,16.5000},
{1664.6863,1337.0352,10.7705},
{-1441.6310,-206.0983,6.0000},
{1921.9943,-2235.5515,13.5469}
};
COMMAND:mission(playerid, params[])
{
new rand = random(sizeof(Randommission));
SetPlayerCheckpoint(playerid, Randommission[rand][0], Randommission[rand][1],Randommission[rand][2],Randommission[rand][3]);
return 1;
}