SA-MP Forums Archive
Teleport - 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: Teleport (/showthread.php?tid=500900)



Teleport - Ananisiki - 15.03.2014

What should i use in my teleport commands?

If i stay with my skins face looking in to my screen and use a teleport command, its still the same, but i want the camera to look straight (so you see back of your skin)

should i use SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?

Thanks.


Re: Teleport - CuervO - 15.03.2014

Let's see...

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
(so you see back of your skin)
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
There's one function that is literally named with what you want to do. Can't find it?

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetCameraBehindPlayer
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
(so you see back of your skin)
A tip for the future, if you really want to learn, you should test whatever happens with the functions instead of posting such things for others to answer. It's part of the learning process to break things.


Re: Teleport - Bingo - 15.03.2014

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

Read this.


Re: Teleport - Abagail - 15.03.2014

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


Re: Teleport - Ananisiki - 15.03.2014




Re: Teleport - Bingo - 15.03.2014

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
My dear, /save with the screen pos you want.


Re: Teleport - Ananisiki - 15.03.2014

pawn Код:
AddPlayerClass(189,960.7136,-53.1602,1001.1172,90.1789,0,0,0,0,0,0);
This is a pos i set after entering a checkpoint, the North on the radar is on the right so i guess i need to set the facing angle to West, which one is it then?


Re: Teleport - Stinged - 15.03.2014

SetPlayerFacingAngle


Re: Teleport - Bingo - 15.03.2014

SetPlayerFacingAngle.

This wont change camera position though.

Use

Код:
SetPlayerCameraPos(playerid, 960.7136,-53.1602,1001.1172);



Re: Teleport - Ananisiki - 15.03.2014

I got another problem, this doesn't work, i can refill it after using it..

pawn Код:
if(tickcount() - HealthAbuse[playerid] < 180000) return SendClientMessage(playerid, COLOR_RED, "Please Wait.");