Checkpoints
#1

^^^^^^^^
Reply
#2

Код:
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
Reply
#3

^^^^^^^^
Reply
#4

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.
Reply
#5

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);
Reply
#6

^^^^^^^^
Reply
#7

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;
}
Reply
#8

pottus how make enter/exit i dont understand .... Help ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)