Camera move doesn't work
#8

Quote:
Originally Posted by RogueDrifter
View Post
Wait why are you even using TogglePlayerSpectating?
I dont know ?


See whole code:


PHP Code:
stock SetPlayerJoinCamera(playerid)
{
    new 
randcamera Random(1,9);
    switch(
randcamera)
    {                                                                    
        case 
1// Gym
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
2// Paintball Arena
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
3// LSPD
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
4// SaC HQ (Gang HQ)
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
5// Fishing Pier
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
6// VIP
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
7// All Saints
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_MOVE);
        }
        case 
8// Unity
        
{
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1507.647216, -1675.55566443.950473);
            
TogglePlayerSpectating(playerid1);
            
SetPlayerPos(playerid,1507.647216, -1675.55566443.950473);
            
InterpolateCameraPos(playerid1507.647216, -1675.55566443.9504731687.330566, -1848.25573742.2628932CAMERA_MOVE);
            
InterpolateCameraLookAt(playerid1511.929809, -1675.60815441.3704181690.043334, -1851.65869139.8008992CAMERA_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
Reply


Messages In This Thread
Camera move doesn't work - by IndependentGaming - 15.02.2018, 19:23
Re: Camera move doesn't work - by Fratello - 15.02.2018, 19:27
Re: Camera move doesn't work - by IndependentGaming - 15.02.2018, 19:34
Re: Camera move doesn't work - by RogueDrifter - 15.02.2018, 19:37
Re: Camera move doesn't work - by Fratello - 15.02.2018, 19:38
Re: Camera move doesn't work - by Fratello - 15.02.2018, 19:45
Re: Camera move doesn't work - by RogueDrifter - 15.02.2018, 19:47
Re: Camera move doesn't work - by IndependentGaming - 15.02.2018, 19:51
Re: Camera move doesn't work - by IndependentGaming - 15.02.2018, 19:56
Re: Camera move doesn't work - by AlexMSK - 15.02.2018, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)