26.05.2009, 14:50
Under OnPlayerCommandText:
Replace the first X, Y and Z with the location of the door,
The second X, Y and Z with the location of the interior
And interiorid with the interiorid
Code:
if (strcmp("/enter", cmdtext, true) == 0)
{
if(PlayerToPoint(5.0, playerid, X, Y, Z))
{
SetPlayerPos(playerid, X, Y, Z);
SetPlayerInterior(playerid, interiorid)
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "You must be closer!");
}
return 1;
}
The second X, Y and Z with the location of the interior
And interiorid with the interiorid

