Sziasztok!
Van egy ilyen checkpointom:
#include <a_samp>
new Text3D: stunt;
public OnFilterScriptInit()
{
print(\">>>>>>>> STUNT CHECKPOINT & 3D TEXT <<<<<<<<\");
return 1;
}
public OnPlayerSpawn(playerid)
{
stunt = Create3DTextLabel(\"STUNT\", 0x008000FF, 1319.2996, 1253.4028, 14.2731, 50.0, 0); // -1 = minden VirtualWorld -ben
SetPlayerCheckpoint(playerid, 1319.2996, 1253.4028, 14.2731, 3.0); // 3.0 = méret
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid,406.3512,2439.9209,16.5000);
return 1;
}
public OnFilterScriptExit()
{
Delete3DTextLabel(Text3D: stunt);
return 1;
}
A kódban csak 1 checkpoint van, de nekem több kéne egymáshoz közel, ide:
Erre a 9 helyre:
AddPlayerClass(254,52.2122,2242.5195,411.6596,79.5587,0,0,0,0,0,0); // 1piros
AddPlayerClass(254,50.1061,2252.2332,411.6671,120.6057,0,0,0,0,0,0); // 2piros
AddPlayerClass(254,41.5548,2258.0176,411.6656,155.6994,0,0,0,0,0,0); // 3piros
AddPlayerClass(254,30.6422,2257.8435,411.6737,203.6399,0,0,0,0,0,0); // 4piros
AddPlayerClass(254,22.2318,2251.8962,411.6671,238.1069,0,0,0,0,0,0); // 5piros
AddPlayerClass(254,20.5104,2242.4792,411.6671,280.4072,0,0,0,0,0,0); // 6piros
AddPlayerClass(254,25.2880,2233.9617,411.6671,320.2010,0,0,0,0,0,0); // 7piros
AddPlayerClass(254,36.1936,2230.0576,411.6596,0.9347,0,0,0,0,0,0); // 8piros
AddPlayerClass(254,46.6287,2233.8320,411.6596,40.1017,0,0,0,0,0,0); // 9piros
http://wiki.sa-mp.com/wiki/Function:SetPlayerCheckpointItt azt írják, hogy meg lehet csinálni, csak fogalmam sincs, hogy hogyan kéne.
\
Remélem tudtok segíteni
VTX