Help with first person view!
#1

pawn Код:
CMD:fps(playerid,params[])
        {
            if(GetPVarInt(playerid,"used") == 0)
            {
                firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
        AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
            AttachCameraToObject(playerid, firstperson[playerid]);
            SetPVarInt(playerid,"used",1);
        }
    else if(GetPVarInt(playerid,"used") == 1)
    {
          SetCameraBehindPlayer(playerid);
          DestroyObject(firstperson[playerid]);
          SetPVarInt(playerid,"used",0);
    }
         return 1;
    }
Problem is, that when i tip IG /fps, then the first person look activated and work on me.
Then, if someone else tip /fps at the time, when i use the fps, then servers says, that "Server does not have the command" or sth like that.
Shorter, if i use /fps, the others can't use this command.
Someone knows problem?
Reply
#2

Yes, other commands works.

It works, when only one person use it. When other person do /fps at same time as i use the command, then it not works on the other person. Only works on one person.
Reply
#3

I need help fast.
Maybe someone knows problem?
Reply
#4

Can someone help maybe?
Reply
#5

Try CreatePlayerObject instead. Not that it should matter but...

Also show us the "firstperson" array.
Reply
#6

pawn Код:
new firstperson[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)