[HELP]NPC Vehicle BUG! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]NPC Vehicle BUG! (
/showthread.php?tid=267518)
[HELP]NPC Vehicle BUG! -
TiNcH010 - 08.07.2011
Hi, I can not get the NPC walk in vehicles.
Try everything, but I stay so the code:
pawn Код:
new AutoTaxi;
new Shamal;
OnPlayerSpawn...
if(!strcmp(nombre, "Conductor_Taxi_LS", true))
{
PutPlayerInVehicle(playerid, AutoTaxi, 0);
new Text3D:TextoBot = Create3DTextLabel("[BOT]Taxista - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
}
ShowPlayerMarkers(0);
if(!strcmp(nombre, "Conductor_Shamal_LS", true))
{
PutPlayerInVehicle(playerid, Shamal, 0);
new Text3D:TextoBot = Create3DTextLabel("[BOT]Avion Shamal - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5);
}
ShowPlayerMarkers(0);
}
OnGameModeInit...
AutoTaxi = AddStaticVehicleEx(420,1827.0239,-1890.7721,13.1912,359.9481,6,1,5000);
Shamal = AddStaticVehicleEx(519,2024.4341,-2493.9421,14.4611,89.4221,1,1,5000);
If i try to do it in LVDM GM, it works! But in my RP doesn't works
Help me please !
Re: [HELP]NPC Vehicle BUG! -
*IsBack - 08.07.2011
Quote:
Originally Posted by TiNcH010
Hi, I can not get the NPC walk in vehicles.
Try everything, but I stay so the code:
pawn Код:
new AutoTaxi; new Shamal;
OnPlayerSpawn... if(!strcmp(nombre, "Conductor_Taxi_LS", true)) { PutPlayerInVehicle(playerid, AutoTaxi, 0); new Text3D:TextoBot = Create3DTextLabel("[BOT]Taxista - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5); } ShowPlayerMarkers(0); if(!strcmp(nombre, "Conductor_Shamal_LS", true)) { PutPlayerInVehicle(playerid, Shamal, 0); new Text3D:TextoBot = Create3DTextLabel("[BOT]Avion Shamal - LS",0xFF0000FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(TextoBot, playerid, 0.0, 0.0, 0.5); } ShowPlayerMarkers(0); }
OnGameModeInit... AutoTaxi = AddStaticVehicleEx(420,1827.0239,-1890.7721,13.1912,359.9481,6,1,5000); Shamal = AddStaticVehicleEx(519,2024.4341,-2493.9421,14.4611,89.4221,1,1,5000);
If i try to do it in LVDM GM, it works! But in my RP doesn't works
Help me please !
|
Edit:
Does it attach TextLabel to bot? if not, something is wrong with your name check (strcmp).
Respuesta: [HELP]NPC Vehicle BUG! -
TiNcH010 - 08.07.2011
The name and strcmp has nothing to do ¬¬
No cars go no more. walk if he walks. and the code that I put everything I have defined: (