28.12.2011, 18:46
I don't think so, because, as i said, it won't execute even the print function, nothing. Here is the code anyway.
And then this function
Код:
function MovingCamera( playerid ) { RotateCameraAroundPoint( playerid, ServerInfo[ MainSpawnX ], ServerInfo[ MainSpawnY ], ServerInfo[ MainSpawnZ ], 2, 10, 3 ); return true; }
Код:
RotateCameraAroundPoint( playerid, Float:X, Float:Y, Float:Z, Offset_X, Offset_Y, Offset_Z ) { SetPlayerCameraPos( playerid, X - Offset_X * floatsin( - PlayerInfoEx[ playerid ][ CameraSpawnAngle ], degrees ), Y - Offset_Y * floatcos( - PlayerInfoEx[ playerid ][ CameraSpawnAngle ], degrees ), Z + Offset_Z ); SetPlayerCameraLookAt( playerid, X, Y, Z + 0.5 ); PlayerInfoEx[ playerid ][ CameraSpawnAngle ] += 0.5; if( PlayerInfoEx[ playerid ][ CameraSpawnAngle ] >= 360.0) PlayerInfoEx[ playerid ][ CameraSpawnAngle ] = 0.0; return true; }