SA-MP Forums Archive
TogglePlayerSpectating help .. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TogglePlayerSpectating help .. (/showthread.php?tid=487379)



TogglePlayerSpectating help .. - OTACON - 13.01.2014

the camera is not set, which is what happens?

pawn Код:
COMMAND:test(playerid, params[]){
    TogglePlayerSpectating(playerid,true);
    PlayerSpectatePlayer(playerid, playerid, SPECTATE_MODE_FIXED);
    SetPlayerCameraPos(playerid,1520.9084,-1674.9863,13.5469);
    SetPlayerCameraLookAt(playerid,1556.0010,-1675.5375,28.3955);
    return true;
}



Re: TogglePlayerSpectating help .. - newbie scripter - 13.01.2014

PlayerSpectatePlayer(playerid, playerid, SPECTATE_MODE_FIXED);

Playerid, playerid?? thats the mistake i think.


Respuesta: TogglePlayerSpectating help .. - OTACON - 13.01.2014

also removed, and the same happens.

the reason is the same as used in InterpolateCameraPos TogglePlayerSpectating.

before work :/