[Ajuda] Portгo nгo abre
#10

Quote:
Originally Posted by PetterAdriano
Посмотреть сообщение
Bom cara mudei, vou ir pela sua opiniгo, Mude a funзгo mais agora o portгo sу abre pros advogados.

PHP код:
    if(strcmp(cmd"/portaopc"true) == 0)
    {
        if(
PlayerInfo[playerid][pEmprego] == && !IsACop(playerid) && IsPlayerInRangeOfPoint(playerid7.0920.6636,-1221.9191,16.9766))
        {
            
F_MoveObjectPortaoPC923.6992, -1236.664821.3379 ,3);
            
F_MoveObjectPortaoPC3923.0747, -1205.638421.3828 ,3);
            
SetTimer("PortaoPC2"4200false);
        }
          return 
1;
    } 
troca a terceira linha por isso:

PHP код:
if(PlayerInfo[playerid][pEmprego] == || IsACop(playerid) && IsPlayerInRangeOfPoint(playerid7.0920.6636,-1221.9191,16.9766)) 
&& = e
|| = ou

Ou seja, se fosse &&, o player teria que ser um advogado e ao mesmo tempo um policial para abrir.

! = diferente

Estava !IsACop(playerid), entгo: Vai abrir se ele for diferente de um COP, ou seja, se ele nгo for um COP.
Reply


Messages In This Thread
Portгo nгo abre - by PetterAdriano - 24.09.2013, 02:43
Re: Portгo nгo abre - by LordShadow - 24.09.2013, 04:06
Re: Portгo nгo abre - by Don_Speed - 24.09.2013, 10:13
Re: Portгo nгo abre - by PetterAdriano - 24.09.2013, 15:35
Re: Portгo nгo abre - by PetterAdriano - 24.09.2013, 15:41
Re: Portгo nгo abre - by arakuta - 24.09.2013, 15:59
Re: Portгo nгo abre - by PetterAdriano - 24.09.2013, 16:01
Re: Portгo nгo abre - by arakuta - 24.09.2013, 16:10
Re: Portгo nгo abre - by PetterAdriano - 24.09.2013, 16:16
Re: Portгo nгo abre - by RuanRider - 24.09.2013, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)