SetPlayerCameraPos Not work help -
Raefal - 14.11.2014
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;
}
Re: SetPlayerCameraPos Not work help -
UltraScripter - 14.11.2014
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;
}
Re: SetPlayerCameraPos Not work help -
X337 - 14.11.2014
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?
Re: SetPlayerCameraPos Not work help -
Raefal - 14.11.2014
^ Nothing chages?
Re: SetPlayerCameraPos Not work help -
X337 - 14.11.2014
I guess, you must remove TogglePlayerSpectating(playerid, 1);
or place TogglePlayerSpectating(playerid, 1);
under SetPlayerCameraLookAt