How to SetPlayerPos at point
#1

How to SetPlayerPos at the hood car. And face turning toward the car.
Reply
#2

PHP код:
SetPlayerPos 
and

PHP код:
SetPlayerFacingAngle 
Reply
#3

basically u can do like this.
new Float:CAngle;
GetVehicleZAngle(vehid,CAngle);
SetPlayerFacingAngle(playerid,CAngle-180);
Reply
#4

So how to position players at the hood
Reply
#5

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
Reply
#6

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.
Reply
#7

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?
Reply
#8

Well if you have the cars all set up then,

https://sampwiki.blast.hk/wiki/SetPlayerPos

https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle
Reply
#9

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"
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)