Help!
#5

I know the problem. When you want to attach the "trailer-car", it dosen't move. The solution: You should use the PutPlayerInVehicle() function, like this:

Код:
if(strcmp(cmd, "/attach", true) == 0)
{
  if(IsPlayerInAnyVehicle(playerid))
  {
   new vehid;
   new vehid2;
   vehid = GetPlayerVehicleID(playerid);
   vehid2 = GetClosestVehicle(playerid);
   PutPlayerInVehicle ( playerid, vehid2, 0 );
   PutPlayerInVehicle ( playerid, vehid, 0 );
   AttachTrailerToVehicle(vehid2,vehid); //vehid2 is the "trailer"! This must be the first!
  }
  return 1;
}
Reply


Messages In This Thread
Help! - by Abyss - 31.03.2009, 07:10
Re: Help! - by LarzI - 31.03.2009, 08:29
Re: Help! - by Abyss - 31.03.2009, 15:17
Re: Help! - by Abyss - 31.03.2009, 17:03
Re: Help! - by _HUN_ZeRo - 29.07.2009, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)