Train bot
#1

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);
        }
Reply
#2

Trains use AddStaticVehicle which can only be called in OnGameModeInit.

Quote:
Trains can only be added with AddStaticVehicle and AddStaticVehicleEx.
Reply
#3

EDIT: nvm
Reply
#4

why the train go back ward?

:O
Reply
#5

You may be pressing the "s" or "down arrow" key, or you have the train facing the wrong way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)