28.12.2014, 12:51
One from my Important Important Important Important problem 
How to add an interior for any buliding ??

How to add an interior for any buliding ??


CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
return 1;
}
|
Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
else if(IsPlayerInRangeOfPoint(playerid, Float:range, Float:X, Float:Y, Float:Z))
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
SetPlayerInterior(playerid, interiorid);
}
return 1;
}
You do still have to fill in the values. |
|
Use "else if" if you want make /enter command
But you can create pickup infront of building and teleport player into interiors when player picks up pickup Or you can use this include https://sampforum.blast.hk/showthread.php?tid=289660 |
|
Okai i am using ZCMD but how to get the PlayerPos inside the buliding ??
|
SetPlayerInterior(playerid, interiorid);
|
http://weedarr.wikidot.com/interior
The third column shows the position of the Interior. The second column shows the interior ID you would fill in at Код:
SetPlayerInterior(playerid, interiorid); EDIT: Here is another list but without pictures. https://sampwiki.blast.hk/wiki/InteriorIDs |
SetPlayerPos(playerid, Float:x, Float:y, Float:z);