Little Problem
#6

Try this:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(GetPVarInt(playerid,"used") == 0)
    {
    new p = GetPlayerVehicleID(playerid);
    obj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
    AttachPlayerObjectToVehicle(playerid,obj[playerid],p,-0.314999, -0.195000, 0.510000, 0.000000, 0.000000,     0.000000);
    AttachCameraToPlayerObject(playerid,obj[playerid]);
    SetPVarInt(playerid,"used",1);
    }
    else
   {
   SetCameraBehindPlayer(playerid);
   DestroyPlayerObject(playerid,obj[playerid]);
   SetPVarInt(playerid,"used",0);
   }
     return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    (Don't know the code but Return the camera to the normal position)
    return 1;
}
Reply


Messages In This Thread
Little Problem - by Yordan_Kronos - 02.06.2012, 10:31
Re: Little Problem - by HuSs3n - 02.06.2012, 10:36
Re: Little Problem - by Yordan_Kronos - 02.06.2012, 10:38
Re: Little Problem - by HuSs3n - 02.06.2012, 10:40
Re: Little Problem - by Yordan_Kronos - 02.06.2012, 10:41
Re: Little Problem - by Ranama - 02.06.2012, 10:49
Re: Little Problem - by Yordan_Kronos - 02.06.2012, 11:08
Re: Little Problem - by Yordan_Kronos - 02.06.2012, 11:11

Forum Jump:


Users browsing this thread: 3 Guest(s)