[FilterScript] Firstperson for Cars
#4

Lol ok I hadnt known that someone did it before I gonna add him in the credits aswell then but however your idea about the different offsets is nice and i definetly going to upgrade it with it.
Next thing is that i made an firstpersoncam for Onfoot aswell heres a prealpha version of it:
Код:
//   1st Person Cam By Redreaper666 || V0.5beta

//INLUDES + DEFINES
#include <a_samp>
#include <zcmd>

new pObject[MAX_PLAYERS];

CMD:camon(playerid)
{
SetTimer("UpdateCam",10,1);//Use a streamer instead
return 1;
}
CMD:camoff(playerid)
{
DestroyPlayerObject(playerid, pObject[playerid]);
SetCameraBehindPlayer(playerid);
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
RemovePlayerAttachedObject(playerid, i);
}
return 1;
}

forward UpdateCam(playerid);
public UpdateCam(playerid)
{
DestroyPlayerObject(playerid, pObject[playerid]);
new Float:X, Float:Y, Float:Z;//Float:ANGLE;//only for Settimer("..",100,1);
GetPlayerPos(playerid,X,Y,Z);
//GetPlayerFacingAngle(playerid,ANGLE);//only for Settimer("..",100);
pObject[playerid] = CreatePlayerObject(playerid, 19300, X-0.05, Y, Z+0.65, 0.0, 0, 0.0);
SetPlayerAttachedObject(playerid, 3, pObject[playerid], 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1);
AttachCameraToPlayerObject(playerid,pObject[playerid]);
//SetPlayerFacingAngle(playerid,ANGLE);//only for Settimer("..",100,1);
return 1;
I would like you to test it out
Reply


Messages In This Thread
Firstperson for Cars - by redreaper666 - 04.04.2013, 15:36
Re: Firstperson for Cars - by BodyBoardVEVO - 04.04.2013, 16:03
Re: Firstperson for Cars - by Pottus - 04.04.2013, 16:12
Re: Firstperson for Cars - by redreaper666 - 04.04.2013, 16:29
Re: Firstperson for Cars - by ElMelo - 04.04.2013, 16:54

Forum Jump:


Users browsing this thread: 2 Guest(s)