14.11.2014, 12:15
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;
}
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;
}