Attempting to make the 1st person [0.3e function]
#1

So basically was trying to do it, after putting the coordinates I noticed some light that comes and goes over and over again - if I attempt to shoot also for example I might get the 'loading' box and my screen goes sort of black if you know what do I mean..

Some screeshots for the light:





Any idea why this happens? and how would I prevent it? I believe that I can prevent it as I saw some first person system created by some member here in the community and he was using this function too.

Any help would be appreciated fellas

Here is an example just to make it clear:

pawn Код:
CMD:startmode(playerid, params[])
{

    if(FPS[playerid]) return SetCameraBehindPlayer(playerid), DestroyDynamicObject(FPSObject[playerid]), FPS[playerid] = 0, SendClientMessage(playerid, -1, "You have stopped using the first person mode!");
    new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z);
    FPSObject[playerid] = CreateObject(19300, X, Y, Z, 0.0, 0.0, 0.0);
    AttachObjectToPlayer(FPSObject[playerid], playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
    SetCameraBehindPlayer(playerid);
    AttachCameraToObject(playerid, FPSObject[playerid]);
    FPS[playerid] = 1;
    SendClientMessage(playerid, -1, "You have started using the first person mode!");
    return 1;
}
Reply


Messages In This Thread
Attempting to make the 1st person [0.3e function] - by Natric - 15.08.2015, 14:39
Re: Attempting to make the 1st person [0.3e function] - by Natric - 15.08.2015, 14:57
Re: Attempting to make the 1st person [0.3e function] - by Crayder - 16.08.2015, 00:43
Re: Attempting to make the 1st person [0.3e function] - by Natric - 16.08.2015, 06:44
Re: Attempting to make the 1st person [0.3e function] - by Crayder - 16.08.2015, 07:37
Re: Attempting to make the 1st person [0.3e function] - by Natric - 16.08.2015, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)