02.01.2013, 00:25
PHP код:
stock MoveCameraInCircelRotation(playerid,Float:winkel2, Float:x_koordinate, Float:y_koordinate, Float:z_koordinate, Float:radius1, Float:winkel)
{
PlayerCamInfo[playerid][player_degree1] =(winkel2 > 360)?(0):((winkel < 0)?(360):(PlayerCamInfo[playerid][player_degree1]));
PlayerCamInfo[playerid][player_degree2] =(winkel > 360)?(0):((winkel < 0)?(360):(PlayerCamInfo[playerid][player_degree2]));
SetPlayerCameraLookAt(playerid,x_koordinate,y_koordinate,z_koordinate);
x_koordinate += (radius1 * floatcos(winkel, degrees) * floatcos(winkel2, degrees));
y_koordinate += (radius1 * floatcos(winkel, degrees) * floatsin(winkel2, degrees));
z_koordinate += (radius1 * floatsin(winkel, degrees));
SetPlayerCameraPos(playerid,x_koordinate,y_koordinate,z_koordinate);
return 1;
}
but you have to chance some variabel for example PlayerCamInfo[playerid][player_degree2]
