How to enter to interior with 'Enter' ?
#2

Add DisableInteriorEnterExits(); to OnGameModeInit, Create a pickup where you want a player to enter an interior.

Example:
pawn Код:
new pickup;

public OnGameModeInit()
{
    DisableInteriorEnterExits();
    pickup = CreatePickup(1239, 23, 3000, 3000, 3000, 0);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup)
  {
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 3000, 3000, 3000);
  }
  return 1;
}
Also can work with checkpoints but in my opinion for someone new to pawn, pickups could be easier. And not to mention look a lot better.

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)