SA-MP Forums Archive
How to Create Moving Skin Camera - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to Create Moving Skin Camera (/showthread.php?tid=83598)



How to Create Moving Skin Camera - illay - 26.06.2009

class selection for SA:MP

How could it? Please help me!


Re: How to Create Moving Skin Camera - Drift_King786 - 26.06.2009

idk
but i posted so i could add to my server too


Re: How to Create Moving Skin Camera - wildwest - 27.06.2009

realy can anyone do this?


Re: How to Create Moving Skin Camera - Grim_ - 27.06.2009

That is SICK. I never thought of doing that.

Anyways, just continously move the players cam from X position to X on a timer frequently.


Re: How to Create Moving Skin Camera - wildwest - 27.06.2009

yeah its sick... i will give delux host to anyone who made me this!


Re: How to Create Moving Skin Camera - Infamous - 27.06.2009

Very nice.


Re: How to Create Moving Skin Camera - Grim_ - 27.06.2009

Quote:
Originally Posted by wildwest
yeah its sick... i will give delux host to anyone who made me this!
Do like I said.
Get like 10 camera positions where you would like the camera to move from.
Make a timer to make the camera move every 500 milliseconds from saved pos 1, to 2, to 3, and so on.
Then if the pos of the cam is at the last, set it to 4, then 3, and so on.


Re: How to Create Moving Skin Camera - illay - 27.06.2009

stock MoveCamera.

pawn Код:
new ct[MAX_PLAYERS]=0;
new CamTimer[MAX_PLAYERS];
forward RequestCamMoving(playerid);

public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid,-245.9774,2580.2698,63.5703);
    SetPlayerFacingAngle(playerid, 206.4424);
    SetPlayerCameraPosEx(playerid,-251.5704,2576.3738,64.5215,-245.9774,2580.2698,63.5703);
    CamTimer[playerid]=SetTimerEx("RequestCamMoving",50,true,"i",playerid);
    //ct[playerid]=1;
    return 1;
}

public RequestCamMoving(playerid){
    if(gPlayerCameraPos[playerid][coord_x]==-251.5704&&gPlayerCameraPos[playerid][coord_y]==2576.3738&&gPlayerCameraPos[playerid][coord_z]==64.5215){
        MoveCamera(playerid,-240.0654,2576.1228,64.5215,29.8891,-245.9774,2580.2698,63.5703);
  } else if(gPlayerCameraPos[playerid][coord_x]==-240.0654&&gPlayerCameraPos[playerid][coord_y]==2576.1228&&gPlayerCameraPos[playerid][coord_z]==64.5215){
    MoveCamera(playerid,-242.6376,2579.4529,64.5215,41.4825,-245.9774,2580.2698,63.5703);
    } else if(gPlayerCameraPos[playerid][coord_x]==-251.5704&&gPlayerCameraPos[playerid][coord_y]==2576.3738&&gPlayerCameraPos[playerid][coord_z]==64.5215){
    MoveCamera(playerid,-242.6376,2579.4529,64.5215,41.4825,-245.9774,2580.2698,63.5703);
    }
    return 1;
}
But bad




Re: How to Create Moving Skin Camera - RonLipel_ - 27.06.2009

Quote:
Originally Posted by David.
stock MoveCamera.

pawn Код:
new ct[MAX_PLAYERS]=0;
new CamTimer[MAX_PLAYERS];
forward RequestCamMoving(playerid);

public OnPlayerRequestClass(playerid, classid) {
    SetPlayerPos(playerid,-245.9774,2580.2698,63.5703);
    SetPlayerFacingAngle(playerid, 206.4424);
    SetPlayerCameraPosEx(playerid,-251.5704,2576.3738,64.5215,-245.9774,2580.2698,63.5703);
    CamTimer[playerid]=SetTimerEx("RequestCamMoving",50,true,"i",playerid);
    //ct[playerid]=1;
    return 1;
}

public RequestCamMoving(playerid){
    if(gPlayerCameraPos[playerid][coord_x]==-251.5704&&gPlayerCameraPos[playerid][coord_y]==2576.3738&&gPlayerCameraPos[playerid][coord_z]==64.5215){
        MoveCamera(playerid,-240.0654,2576.1228,64.5215,29.8891,-245.9774,2580.2698,63.5703);
  } else if(gPlayerCameraPos[playerid][coord_x]==-240.0654&&gPlayerCameraPos[playerid][coord_y]==2576.1228&&gPlayerCameraPos[playerid][coord_z]==64.5215){
    MoveCamera(playerid,-242.6376,2579.4529,64.5215,41.4825,-245.9774,2580.2698,63.5703);
    } else if(gPlayerCameraPos[playerid][coord_x]==-251.5704&&gPlayerCameraPos[playerid][coord_y]==2576.3738&&gPlayerCameraPos[playerid][coord_z]==64.5215){
    MoveCamera(playerid,-242.6376,2579.4529,64.5215,41.4825,-245.9774,2580.2698,63.5703);
    }
    return 1;
}
But bad

UR joking? :X
its unfinished.


Re: How to Create Moving Skin Camera - Correlli - 27.06.2009

Try this: http://forum.sa-mp.com/index.php?top...39.0;topicseen