Spectate, interrior worlds etc.
#1

Hello.
So what im trying to do is, make a command that spectates the leader of a gang.
HEres the code:
PHP код:
 CMD:spectate3(playeridparams[])
 {
        for(new 
0GetMaxPlayers(); i++)
        {
                if(
PlayerInfo[i][pLeader] == F_BALLAS)
                {
                    
                       
TogglePlayerSpectating(playerid1);
            
SetPlayerInterior(playeridGetPlayerInterior(i));
            
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(i));
                   
PlayerSpectatePlayer(playeridi);
            }
        }
 } 
all in all code works just fine. The problem is, if im inside a building(in a different interrior) it shows sky after using the command. If im outside, nearby the leader (in the same interrior with the leader) the command works just fine. I can't figure it out whats wrong with it o.o
Reply


Messages In This Thread
Spectate, interrior worlds etc. - by GuitarMan - 22.12.2014, 22:58
Re: Spectate, interrior worlds etc. - by Threshold - 23.12.2014, 02:24
Re: Spectate, interrior worlds etc. - by GuitarMan - 23.12.2014, 07:38
AW: Spectate, interrior worlds etc. - by Flori - 23.12.2014, 08:45
Re: Spectate, interrior worlds etc. - by GuitarMan - 23.12.2014, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)