How to SetPlayerPos at point - 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: How to SetPlayerPos at point (
/showthread.php?tid=649405)
How to SetPlayerPos at point -
hoanduy - 08.02.2018
How to SetPlayerPos at the hood car. And face turning toward the car.
Re: How to SetPlayerPos at point -
PepsiCola23 - 08.02.2018
and
PHP код:
SetPlayerFacingAngle
Re: How to SetPlayerPos at point -
Mugala - 08.02.2018
basically u can do like this.
new Float:CAngle;
GetVehicleZAngle(vehid,CAngle);
SetPlayerFacingAngle(playerid,CAngle-180);
Re: How to SetPlayerPos at point -
hoanduy - 08.02.2018
So how to position players at the hood
Re: How to SetPlayerPos at point -
Mugala - 08.02.2018
Quote:
Originally Posted by hoanduy
So how to position players at the hood
|
you must calculate the position of the hood. if u want to calculate for all vehicles, gl with that
Re: How to SetPlayerPos at point -
solstice_ - 08.02.2018
Quote:
Originally Posted by hoanduy
So how to position players at the hood
|
Go ig and then go infront of the car you want to save the position, use /save. Then open the script and set the player's position whereever you want, and use:
PHP код:
SetCameraBehindPlayer(playerid);
Also use
GetPlayerFacingAngle to set the player's facing angle.
Re: How to SetPlayerPos at point -
Mugala - 08.02.2018
aw wait, if I correctly understand, u wanted a player to go towards at vehicle's hood, is it? or u want to set a player's pos in a ghetto's hood or something like that?
Re: How to SetPlayerPos at point -
ivndosos - 08.02.2018
Well if you have the cars all set up then,
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle
Re: How to SetPlayerPos at point -
hoanduy - 09.02.2018
Quote:
Originally Posted by Mugalito
aw wait, if I correctly understand, u wanted a player to go towards at vehicle's hood, is it? or u want to set a player's pos in a ghetto's hood or something like that?
|
That's right, my point is "wanted a player to go towards at vehicle's hood"
Re: How to SetPlayerPos at point -
Mugala - 09.02.2018
Quote:
Originally Posted by hoanduy
That's right, my point is "wanted a player to go towards at vehicle's hood"
|
yeah than I wrote a correct answer.