I need help - 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: I need help (
/showthread.php?tid=605119)
DONE -
Connor Smith - 14.04.2016
DONE!
Re: I need help -
Connor Smith - 16.04.2016
BUMP
Re: I need help -
Saliim - 17.04.2016
hi, You can make a player of audit in your dimension , and teleport with you in the place you want it to be teleported . You 're not bad example in system Admin
Re: I need help -
Connor Smith - 17.04.2016
But look..Everything is working, but when is not only me in the car(+ 3 passengers), they're teleporting but not in the same interior with me
Re: I need help -
Saliim - 17.04.2016
in your function teleportation is a verification of your interior , adding SetPlayerInterior check from the Inside.
Example:
GetPlayerInterior : detect interior 8
Teleportation in GetPlayerInterior 8
Teleportation you with him in interior 8
Re: I need help -
Connor Smith - 20.04.2016
Can you make this in code..because I cant understand you?
Re: I need help -
J0sh... - 20.04.2016
You do this for passengers:
SetPlayerInterior(Seat[i], GarageData[id][garageInterior]);
But you do this for the driver & vehicle:
SetPlayerInterior(playerid,
floatround(GarageData[id][garageInterior]));
Re: I need help -
Connor Smith - 21.04.2016
So i should change it to
SetPlayerInterior(Seat[i],floataround(GarageData[id][garageInterior]));
Re: I need help -
Connor Smith - 21.04.2016
BUMPPP
Re: I need help -
Sew_Sumi - 21.04.2016
Why are you using floatround in the first instance? interiors are int values anyway...
What jamester said though is what you need to do. You need to set all of them to the same interior, by going through all the passengers.
I can't see why you use PutPlayerInVehicle though as if they were in the car in the first place, you don't need to put them in it again when they are teleporting the car.
You just have to set the interior of the player.