Train bot - 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)
+--- Thread: Train bot (
/showthread.php?tid=510166)
Train bot -
Ananisiki - 30.04.2014
I added train bot but it just stay in spawn it dont be in the train, other bot work good one is driving a plane but this one no work
pawn Код:
SFTrain = CreateVehicle(537, 0.0, 0.0, 5.0, 0.0, -1, -1 , 5000);
pawn Код:
if(!strcmp(NPCName, "Boobalo", true))
{
SetPlayerSkin(playerid, 255);
PutPlayerInVehicle(playerid, SFTrain, 0);
}
Re: Train bot -
SkittlesAreFalling - 30.04.2014
Trains use
AddStaticVehicle which can only be called in OnGameModeInit.
Quote:
|
Trains can only be added with AddStaticVehicle and AddStaticVehicleEx.
|
Re: Train bot -
Ananisiki - 30.04.2014
EDIT: nvm
Re: Train bot -
Ananisiki - 30.04.2014
why the train go back ward?
:O
Re: Train bot -
SkittlesAreFalling - 30.04.2014
You may be pressing the "s" or "down arrow" key, or you have the train facing the wrong way.