Teleporting cars with the player to interiors...
#1

Okay well I've successfully made the teleport work but my car turns invisible when I get there? I made this:

Код:
 if(!strcmp(cmdtext,"/teleport4",true))
{
  if(IsPlayerInAnyVehicle(playerid))
  {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
      SetVehiclePos(GetPlayerVehicleID(playerid), -1394.20, 987.62, 1023.96);
      SetPlayerInterior(playerid, 15);
    }
    else
      {
      SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be the driver!");
      SetPlayerInterior(playerid, 15);
      return 1;
      }
  }
  else
    {
      SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
    }
  return 1;
}
Is there like a SetVehicleInterior or something?

Thanks, Anthony.
Reply


Messages In This Thread
Teleporting cars with the player to interiors... - by Anthony413 - 28.07.2009, 17:13
Re: Teleporting cars with the player to interiors... - by refshal - 28.07.2009, 17:49
Re: Teleporting cars with the player to interiors... - by boelie - 28.07.2009, 18:03
Re: Teleporting cars with the player to interiors... - by Anthony413 - 28.07.2009, 19:19
Re: Teleporting cars with the player to interiors... - by pagie1111 - 28.07.2009, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)