[Ajuda] NPC nгo entra no veнculo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] NPC nгo entra no veнculo (
/showthread.php?tid=370413)
NPC nгo entra no veнculo -
Since` - 20.08.2012
Por algum motivo o NPC nгo entra no veнculo, ele fica no ponto de spawn, cуdigos:
Topo do GM:
OnGameModeInit
pawn Код:
ConnectNPC("Thomas", "EMERGENCY");
ThomasVeh = AddStaticVehicleEx(416, 983.79980469, -1521.39941406, 13.19999981, 180.00000000, -1, -1, 15);
OnPlayerSpawn
pawn Код:
else if(!strcmp(nPCn, "Thomas", true))
{
PutPlayerInVehicle(playerid, ThomasVeh, 0);
return 1;
}
Re: NPC nгo entra no veнculo -
Since` - 21.08.2012
UP, alguйm pode me ajudar?
Re: NPC nгo entra no veнculo -
DreyPT - 21.08.2012
Acho que tens de utilizar a public OnNPCSpawn
Re: NPC nгo entra no veнculo -
@Riichard - 21.08.2012
@EDIT@@
Creio que sejб possivel, somente com "
CreateVehicle" e depois usar "
PutPlayerInVehicle".
Re: NPC nгo entra no veнculo -
Since` - 22.08.2012
Desculpa pela demora.
Nгo deu certo.