31.08.2010, 17:38
Well, first you need a /enter command, like this one:
Just change the coordinates to the house exterior door and the interior ID.
pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid, 1552.8628,-1675.5975,16.1953)) //Change this coordinates to your exterior door to the house
{
SetPlayerPos(playerid, 246.7840,63.9005,1003.6406); //Change this coordinates to your interior door to the house
SetPlayerFacingAngle(playerid, 0.0000); //Also change the facing angle if you want
SetPlayerInterior(playerid, 6); //Change the interior ID
SetCameraBehindPlayer(playerid);
}
}
return 1;
}

