PHP Code:
stock SetPlayerJoinCamera(playerid)
{
new randcamera = Random(1,9);
switch(randcamera)
{
case 1: // Gym
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 2: // Paintball Arena
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 3: // LSPD
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 4: // SaC HQ (Gang HQ)
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 5: // Fishing Pier
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 6: // VIP
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 7: // All Saints
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
case 8: // Unity
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1507.647216, -1675.555664, 43.950473);
TogglePlayerSpectating(playerid, 1);
SetPlayerPos(playerid,1507.647216, -1675.555664, 43.950473);
InterpolateCameraPos(playerid, 1507.647216, -1675.555664, 43.950473, 1687.330566, -1848.255737, 42.262893, 2, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, 1511.929809, -1675.608154, 41.370418, 1690.043334, -1851.658691, 39.800899, 2, CAMERA_MOVE);
}
}
return 1;
}
No matter what I change I changed a few cases with cordinates and still once on the login screen it keeps freeze on blueberry