Train view
#1

Hi!

I'm porting my script to 0.3 but there is a problem:
I made a script which puts a player with /train into a train on the tram track in San Fierro.
When he leaves the train, the view still is fixed to the train.

How can I solve this?
Thanks for help!

adihash
Reply
#2

I had this problem to

actually it was with a FS with RC-vehicles only in it. The tram was also named as an RC vehicle so if i wanted to get out that car
i had to make removeplayerfromvehicle or something.
Or setfacingangle maybe

Its worth a try

good luck
Reply
#3

http://forum.sa-mp.com/index.php?top...2930#msg772930
Reply
#4

I tried but it don't work, i think it is because of samp 0.3
Reply
#5

It works! Its made specialy for 0.3

EDIT: Oh sory, dugi gave you an old code which wont work!
Try this, this is in the same post:
pawn Код:
new bool:traincamera[MAX_PLAYERS] = false;

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && GetVehicleModel(GetPlayerVehicleID(playerid)) == 449)
  {
      traincamera[playerid] = true;
    }
   
    if(traincamera[playerid] == true && newstate == PLAYER_STATE_ONFOOT)
    {
      SetCameraBehindPlayer(playerid);
      traincamera[playerid] = false;
    }
    return 1;
}
Reply
#6

thx, that worked for me,
please also read my other topic: http://forum.sa-mp.com/index.php?topic=129295.0

adihash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)