13.01.2014, 02:20
Creo que buscabas que la cбmara se quede estбtica en el lugar que estб, pero que se pueda mirar a sus alrededores.
Es asн:
Es asн:
pawn Код:
stock FlyMode(playerid)
{
// Create an invisible object for the players camera to be attached to
new Float:x, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new obj = CreatePlayerObject(playerid, 19300, X, Y, Z, 0.0, 0.0, 0.0);
// Place the player in spectating mode so objects will be streamed based on camera location
TogglePlayerSpectating(playerid, true);
// Attach the players camera to the created object
AttachCameraToPlayerObject(playerid, obj);
return 1;
}