Checkpoints -
Ananisiki - 20.06.2013
^^^^^^^^
Re: Checkpoints -
SwisherSweet - 20.06.2013
Код:
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);//your coords
SetPlayerInterior(playerid, your interior id);
edit actually
go into the interior you want then get the coords and then SetPlayerCheckpoint
Re: Checkpoints -
Ananisiki - 21.06.2013
^^^^^^^^
Re: Checkpoints -
jakejohnsonusa - 21.06.2013
That means the point you made is invalid, blueberry is the default error location (0, 0, 0).
Do /save and make sure the location you want is correct.
Re: Checkpoints -
Sasino97 - 21.06.2013
Quote:
Originally Posted by Ananisiki
How do I create exit checkpoints inside an interior with Incognitos streamer?
Example on how to?
|
He is asking with Incognito's streamer:
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Re: Checkpoints -
Ananisiki - 22.06.2013
^^^^^^^^
Re: Checkpoints -
Pottus - 22.06.2013
You could give my include a try for this (it's made for this kind of problem)
https://sampforum.blast.hk/showthread.php?tid=423622
To make things simple follow the instructions but use this stock function to set positions....
SetPlayerPosEx() no need for any range checking, your enter code is now neatly done in it's own function which will reduce clutter and make it easier to update action specific checkpoints/areas.
pawn Код:
public OnGameModeInit()
{
AddDynamicSphereArea(1000.0, 1000.0, 1000.0, 4.0, "TestArea");
}
OnArea:TestArea(playerid, areaid, areaindex)
{
SetPlayerPosEx(playerid, 0.0, 0.0, 0.0, 0.0, 0, 0);
return 1;
}
pawn Код:
stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z, Float:fa, vw = 0, interior = 0)
{
SetPlayerPlayer(playerid, x, y, z);
SetPlayerFacingAngle(playerid, fa);
SetPlayerVirtualWorld(playerid, vw);
SetPlayerInterior(playerid, interior);
SetCameraBehindPlayer(playerid);
return 1;
}
.................
And could you please make a CP at this pos, just so I understand how you make it:
2127.5300,2380.1204,10.8203
and when you enter it,
Interior ID: 3 Interior X, Y, Z: 964.106994,-53.205497,1001.124572
.................
Sure....
Under Gamemode init
pawn Код:
AddDynamicCP(964.106994,-53.205497,1001.124572, 2.0, "MyEnterPoint")
Somewhere else in the script as it's own function
pawn Код:
OnCheckPoint:MyEnterPoint(playerid, cpid, cpindex)
{
SetPlayerPosEx(playerid,964.106994,-53.205497,1001.124572, 0.0, 0, 3);
return 1;
}
Re: Checkpoints -
Toxik - 19.03.2014
pottus how make enter/exit i dont understand .... Help ....