21.04.2011, 09:10
Hello,help me please how to add my edit interior to pawno
if(!strcmp("/Teleport", cmdtext, true))
{
SetPlayerPos(playerid, 5.0, 6.0, 7.0);
SendClientMessage(playerid, -1, "Now you are into a interior!");
return 1;
}
dcmd_enter(playerid, params[])
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, int);
SendClientMessage(playerid, COLOUR, "Put you in the interior");
return 1;
#pragma unused params
}
Ok... First, you save your coordinates. My coordinates, for this example, are: 5.0 (X), 6.0 (Y) and 7.0(Z).
In this example I use command "Teleport": pawn Код:
CreateObject(5000, 5.0, 6.0, 7.0, 0.0, 0.0, 0.0, 200.0); You can use the "red" coordinates into your SetPlayerPos. When you are in Interior, you can save specific coordinates with command "/save". |