SetPlayerCameraPos Not work help
#1

Not working, just show dialog from SQL_CheckAccount without set camera to the cordinate.

public OnPlayerRequestClass(playerid, classid)
{
if (IsPlayerNPC(playerid))
return 1;

if (!PlayerData[playerid][pAccount] && !PlayerData[playerid][pKicked])
{
new
time[3];

gettime(time[0], time[1], time[2]);
SetPlayerTime(playerid, time[0], time[1]);

TogglePlayerSpectating(playerid, 1);

PlayerData[playerid][pAccount] = 1;

SetPlayerPos(playerid, 313.109436, -1848.991210, -6.454225);
SetPlayerCameraPos(playerid, 313.109436, -1848.991210, 13.545774);
SetPlayerCameraLookAt(playerid, 313.130828, -1848.462646, 13.459357);

SQL_CheckAccount(playerid);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if (IsPlayerNPC(playerid))
return 1;
}
if (!PlayerData[playerid][pAccount] && !PlayerData[playerid][pKicked])
{
new
time[3];

gettime(time[0], time[1], time[2]);
SetPlayerTime(playerid, time[0], time[1]);

TogglePlayerSpectating(playerid, 1);

PlayerData[playerid][pAccount] = 1;

SetPlayerPos(playerid, 313.109436, -1848.991210, -6.454225);
SetPlayerCameraPos(playerid, 313.109436, -1848.991210, 13.545774);
SetPlayerCameraLookAt(playerid, 313.130828, -1848.462646, 13.459357);

SQL_CheckAccount(playerid);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}
Reply
#3

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if (IsPlayerNPC(playerid))
return 1;
}
if (!PlayerData[playerid][pAccount] && !PlayerData[playerid][pKicked])
{
new
time[3];

gettime(time[0], time[1], time[2]);
SetPlayerTime(playerid, time[0], time[1]);

TogglePlayerSpectating(playerid, 1);

PlayerData[playerid][pAccount] = 1;

SetPlayerPos(playerid, 313.109436, -1848.991210, -6.454225);
SetPlayerCameraPos(playerid, 313.109436, -1848.991210, 13.545774);
SetPlayerCameraLookAt(playerid, 313.130828, -1848.462646, 13.459357);

SQL_CheckAccount(playerid);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}
Код:
public OnPlayerRequestClass(playerid, classid)
{
if (IsPlayerNPC(playerid))
return 1;
}
What is that?
Reply
#4

^ Nothing chages?
Reply
#5

I guess, you must remove TogglePlayerSpectating(playerid, 1);
or place TogglePlayerSpectating(playerid, 1);
under SetPlayerCameraLookAt
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)