case 1:
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,2229.4968,-1722.0701,13.5625);
SetPlayerPos(playerid,2211.1460,-1748.3909,-10.0);
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);
}
TogglePlayerSpectating(playerid, 1); 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);
Code:
TogglePlayerSpectating(playerid, 1); 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); |
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;
}
I don't know really... i never tried spectate + interp cam (it seemed to cause problems to the OP as well *white-screen* ) ,
this may seem random but remove the 'streamer_updateEx' and try again this is the only code line i see that could make a change i guess? |
new randcamera = Random(1,9);
switch(random(9))