Npc AttachTrailerToVehicle don't work
#5

on top:
Код:
new Linerunner,trailer;
OnGameModeInit:
Код:
ConnectNPC("Linerunner","Linerunner");
Linerunner = CreateVehilce(403, 0.0, 0.0, 5.0, 0.0, 2, 7, 5000);
Trailer = CreateVehilce(450, 0.0, 0.0, 5.0, 0.0, 2, 7, 5000);
AttachTrailerToVehicle(Trailer,Linerunner);
OnPlayerSpawn:
Код:
if(PIslayerNPC(playerid))
{
  new NPCname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, NPCname, sizeof(NPCname)); 
  if(!strcmp(npcname, "Dumper01", true))
  {
   PutPlayerInVehicle(playerid,Linerunner,0);
   AttachTrailerToVehicle(Trailer,Linerunner);
   return 1;
  }
}
i don't got a OnPlayerConnect in my fs.
Reply


Messages In This Thread
Npc AttachTrailerToVehicle don't work - by gangstajoe - 30.04.2010, 22:18
Re: Npc AttachTrailerToVehicle don't work - by Steven82 - 30.04.2010, 22:24
Re: Npc AttachTrailerToVehicle don't work - by gangstajoe - 01.05.2010, 12:25
Re: Npc AttachTrailerToVehicle don't work - by CAR - 01.05.2010, 12:32
Re: Npc AttachTrailerToVehicle don't work - by gangstajoe - 01.05.2010, 14:03
Re: Npc AttachTrailerToVehicle don't work - by gangstajoe - 05.05.2010, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)