Jump to content
  • 0

Problema NPC-uri


Guest DJMaya

Question

Vreau sa pun NPC-uri mai multe cu masini dar nu stiu cum fac . Deci inregistrez NPC -ul ---> trec prin tutorial --- > ajung la partea cand ii pun vehicolul  NPCvehicle = CreateVehicle(411, 0.0, 0.0, 0.0, 0.0, -1, -1, 1000); vine problema . Daca sa zicem ca am pus un infernus care se plimba prin LS deci  NPCvehicle = CreateVehicle(411, 0.0, 0.0, 0.0, 0.0, -1, -1, 1000); si al NPC cu alta masina care se plimba prin alt oras nu conteaza si pun  NPCvehicle = CreateVehicle(masina, 0.0, 0.0, 0.0, 0.0, -1, -1, 1000); dar de unde stiu scriptul la care NPC sa puna masina corecta ??

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

 new playername[64];
	GetPlayerName(playerid,playername,64);

 	if(!strcmp(playername,"BusRouteLS",true)) {
    SetSpawnInfo(playerid, 0, 61, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
    PutPlayerInVehicle(playerid, 286, 0);
	}

Adauga asta la OnPlayerSpawn(playerid) - in loc de BusRouteLS pune numele NPC-ului tau si modifica 'vehicleid' din PutPlayerInVehicle ( adica sa modifici 286 )

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.