20.06.2013, 22:04
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 18:52.
)
^^^^^^^^
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);//your coords SetPlayerInterior(playerid, your interior id);
How do I create exit checkpoints inside an interior with Incognitos streamer?
Example on how to? |
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
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;
}
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;
}
AddDynamicCP(964.106994,-53.205497,1001.124572, 2.0, "MyEnterPoint")
OnCheckPoint:MyEnterPoint(playerid, cpid, cpindex)
{
SetPlayerPosEx(playerid,964.106994,-53.205497,1001.124572, 0.0, 0, 3);
return 1;
}