public OnPlayerConnect(playerid)
{
SetPlayerPos(playerid, 1438.2032, -1094.4763, 17.6079); // Quero setar essa pos
SetPlayerCameraPos(playerid, 1428.05, -1091.22, 18.73); // Quero setar essa camerapos
SetPlayerCameraLookAt(playerid, 1434.03, -1091.76, 18.76); // e isoo tambйm.
TogglePlayerSpectating(playerid, true);
TextDrawHideForPlayer(playerid, Horario[playerid]);
TextDrawShowForPlayer(playerid, Box_Borda_Login[playerid]);
TextDrawShowForPlayer(playerid, Borda_Login1[playerid]);
TextDrawShowForPlayer(playerid, Borda_Login2[playerid]);
TextDrawShowForPlayer(playerid, TLogin_Entrar[playerid]);
TextDrawShowForPlayer(playerid, TLogin_Registrar[playerid]);
TextDrawShowForPlayer(playerid, TLogin_Creditos[playerid]);
TextDrawShowForPlayer(playerid, TLogin_Forum[playerid]);
TextDrawShowForPlayer(playerid, TLogin_Sair[playerid]);
TextDrawShowForPlayer(playerid, MiniT_Jogar[playerid]);
TextDrawShowForPlayer(playerid, MiniT_Registro[playerid]);
TextDrawShowForPlayer(playerid, MiniT_SiglasSV[playerid]);
TextDrawShowForPlayer(playerid, MiniT_Site[playerid]);
TextDrawShowForPlayer(playerid, MiniT_Sair[playerid]);
SelectTextDraw(playerid, 0xFFA500FF);
V_ESC[playerid] = true;
JogadorLogado[playerid] = false;
ErrouSenha[playerid] = 0;
INFO_P[playerid][TUTO_P] = 0;
INFO_P[playerid][SKIN_P] = 0;
INFO_P[playerid][SEXO_P] = 0;
return true;
}
TogglePlayerSpectating(playerid, true);
SetPlayerPos(playerid, 1438.2032, -1094.4763, 17.6079); // Quero setar essa pos
SetPlayerCameraPos(playerid, 1428.05, -1091.22, 18.73); // Quero setar essa camerapos
SetPlayerCameraLookAt(playerid, 1434.03, -1091.76, 18.76); // e isoo tambйm.
Tente coloca o TogglePlayerSpectating(playerid, true); antes das funзхes da SetPlayerCameraLookAt,SetPlayerCameraPos etc ...
Exemplo: pawn Код:
|
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, 1);
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1438.2032, -1094.4763, 17.6079); // Quero setar essa pos SetPlayerCameraPos(playerid, 1428.05, -1091.22, 18.73); // Quero setar essa camerapos SetPlayerCameraLookAt(playerid, 1434.03, -1091.76, 18.76); // e isoo tambйm. return 1; }