Jump to content
  • 0

pomoc pomoc z NPC


Guest boban888

Dotaz

ConnectNPC("[TMB]MHD_NPC","[TMB]MHD");
ConnectNPC("[TMB]Pilot_NPC","[TMB]Pilot");
AutoBota = CreateVehicle(431, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
AutoBota = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

public OnPlayerSpawn(playerid)
{
  SetPlayerInterior(playerid, 0);
  if(IsPlayerNPC(playerid))
  {

      GetPlayerName(playerid, npcname, sizeof(npcname));
      if(!strcmp(npcname, "[TMB]MHD_NPC", true))
      {
          PutPlayerInVehicle(playerid, AutoBota, 0);
      }
  }
  return 1;
}

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

Oprav si to :

 

AutoBota = CreateVehicle(431, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

AutoBota2 = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

 

takze aj new AutoBota2;

 

a prepis si ze to toho druhyho bota hodi do auta "AutoBota2"

Link to comment
Share on other sites

  • 0

//GetPlayerName(playerid, npcname, sizeof(npcname));

OnPlayerSpawn:

K tomu prvnimu NPC :

 

if(!strcmp(npcname, "[TMB]Pilot_NPC", true))

{

PutPlayerInVehicle(playerid, AutoBota2, 0);

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...