[Ajuda] Camera
#6

Sгo muitas casas? Dessa forma q eu fiz fica legal mano.

pelo id acho q fica melhor e menos trabalhoso. Da p pegar a coordenada certa da casa e afastar a camera ( n lembro qual й q afasta, se й o x,y ou z).

Fiz uma alteraзгozinha

PHP код:

    
if(dialogid == 3)
    {
        
escolha[playerid] = strval(inputtext);
          if(!
response)
        {
            
SendClientMessage(playerid, -1"Vocк nгo quer ver");
            return 
1;
        }
        if(!
strval(inputtext))
        {
        
SendClientMessage(playerid, -1"Digite somente numeros!");
           
ShowPlayerDialog(playerid3DIALOG_STYLE_INPUT"Casas""Digite o id da casa""Visualizar""Cancelar");
        return 
1;
        }
            if(
escolha[playerid] == 1)
            {
                
SetPlayerCameraPos(playerid2003.3597, -1720.679029.8490);
                
SetPlayerCameraLookAt(playerid2002.3553, -1720.661529.2091);
                
SendClientMessage(playerid, -1"Casas 01!");
                
SendClientMessage(playerid, -1"Digite /sair, para parar de visualizar!");
                return 
1;
            }
            if(
escolha[playerid] == 2)
            {
                
SetPlayerCameraPos(playerid2000.9430, -1682.832525.5212);
                
SetPlayerCameraLookAt(playerid1999.9388, -1682.816725.0712);
                
SendClientMessage(playerid, -1"Casas 02!");
                   
SendClientMessage(playerid, -1"Digite /sair, para parar de visualizar!");
                   return 
1;
            }
            if(
escolha[playerid] > 2)
            {
            
SendClientMessage(playerid, -1"Id invalido!");
            return 
1;
            }
        
SendClientMessage(playerid, -1"Casas disponiveis!");
        return 
1;
    }
    return 
1;

PHP код:
forward Voltar(playerid);
public 
Voltar(playerid)
{
    
SetPlayerPos(playeridpPosX[playerid],  pPosY[playerid], pPosZ[playerid]);
    
SetCameraBehindPlayer(playerid);
    return 
1;

Reply


Messages In This Thread
Camera - by AutoMatic2 - 17.02.2019, 23:59
Re: Camera - by zGuigui2068 - 18.02.2019, 00:02
Re: Camera - by AutoMatic2 - 18.02.2019, 00:08
Re: Camera - by zGuigui2068 - 18.02.2019, 00:37
Re: Camera - by AutoMatic2 - 18.02.2019, 00:59
Re: Camera - by zGuigui2068 - 18.02.2019, 01:15
Re: Camera - by AutoMatic2 - 18.02.2019, 01:35
Re: Camera - by Cauezin - 18.02.2019, 01:43
Re: Camera - by zGuigui2068 - 18.02.2019, 01:50
Re: Camera - by AutoMatic2 - 18.02.2019, 02:40

Forum Jump:


Users browsing this thread: 2 Guest(s)