How to add my edit interior to pawno?
#1

Hello,help me please how to add my edit interior to pawno
Reply
#2

1) You take coordinates of a point into Interior
2) Create a Teleport with function "SetPlayerPos" with coordinates
Reply
#3

Ok show me your script edit to me
Reply
#4

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 Код:
if(!strcmp("/Teleport", cmdtext, true))
{
SetPlayerPos(playerid, 5.0, 6.0, 7.0);
SendClientMessage(playerid, -1, "Now you are into a interior!");
return 1;
}
How to get coordinates? Example:

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

If build,my interior its my edit interior ,and use command /enter.how to script that?
Reply
#6

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

Quote:
Originally Posted by mitosking
Посмотреть сообщение
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 Код:
if(!strcmp("/Teleport", cmdtext, true))
{
SetPlayerPos(playerid, 5.0, 6.0, 7.0);
SendClientMessage(playerid, -1, "Now you are into a interior!");
return 1;
}
How to get coordinates? Example:

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".
Better get you're coordinates by doing /save ingame.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)