SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 17/12/2016, 12:34 AM   #1
OverKiller
Huge Clucker
 
OverKiller's Avatar
 
Join Date: Mar 2016
Location: Brazil - America South
Posts: 379
Reputation: 4
Post Facing angle não estar funcionando.

Quote:
if(dialogid == D_Autoescola)
{
if(response == 1)
{
SetPlayerInterior(playerid,0);
InAutoEscola[playerid] = 1;
SetPlayerPos(playerid,1217.210449, -1674.966674, 11.796875);
SetPlayerFacingAngle(playerid,357.262969);
Mensagem(playerid,VERDE,"[TESTE] - Você acaba de iniciar o nosso teste, entre num veiculo de sua preferencia e siga os checkpoints até o final!");
Mensagem(playerid,AZULESCURO,"[INFO] - Pressione ' H ' para abrir o portão do pátio da auto escola.");
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[0][0], AutoPoints[0][1], AutoPoints[0][2],AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2], 10);
point[playerid] = 1;
GivePlayerMoney(playerid, - 500);
return 1;
}
}
Se não me engano essa função onde marquei de vermelho, serve para seta o angulo da câmera do player, mas eu seto a posição do player dai e o ângulo porém o angulo não vai, invés da câmera ficar nas costa do player apontando pra frente(onde tem os veículos) ela fica toda errada, alguém pode ajuda ae?
OverKiller is offline   Reply With Quote
Old 17/12/2016, 09:59 AM   #2
AuhMaru
Big Clucker
 
Join Date: Oct 2016
Posts: 97
Reputation: 11
Default Re: Facing angle não estar funcionando.

Use a função: "SetCameraBehindPlayer"

Ex:
Code:
...
SetPlayerFacingAngle(playerid, 357.262969);
SetCameraBehindPlayer(playerid);
...
AuhMaru is offline   Reply With Quote
Old 17/12/2016, 02:23 PM   #3
OverKiller
Huge Clucker
 
OverKiller's Avatar
 
Join Date: Mar 2016
Location: Brazil - America South
Posts: 379
Reputation: 4
Default Respuesta: Facing angle não estar funcionando.

Funcionou, valeu. REP+
OverKiller is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing Angle Juvanii Scripting Help 8 05/08/2014 07:39 AM
Help with facing angle Richie© Scripting Help 4 07/06/2013 09:12 PM
facing angle manchestera Scripting Help 9 21/11/2011 07:14 PM
facing angle Kar Help Archive 5 10/07/2010 02:42 PM
[HELP] a little help with get the car facing angle AK47317 Help Archive 3 07/05/2010 08:16 AM


All times are GMT. The time now is 04:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.