21.07.2015, 22:32
In 0.3.7 R1, flymode worked fine. In R2, it gives the white loading screen of death. It's not TogglePlayerSpectate causing the issue. I think it's AttachCameraTo*. I don't know how to explain this any further, it's just that simple.
The following piece of the flymode FS doesn't cause any harm, it just gives you the beach view.
This code makes the screen blink between that view and the white loading screen of death.
This code locks you in the white loading screen of death.
(The flymode function is from the flymode FS packed with the default server package.)
The following piece of the flymode FS doesn't cause any harm, it just gives you the beach view.
Code:
new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); TogglePlayerSpectating(playerid, true); SetPlayerCameraPos(playerid, X, Y, Z);
Code:
new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); noclipdata[playerid][flyobject] = CreatePlayerObject(playerid, 19300, X, Y, Z, 0.0, 0.0, 0.0); AttachCameraToPlayerObject(playerid, noclipdata[playerid][flyobject]);
Code:
FlyMode(playerid);