[Ajuda] Urgente CCTV
#1

й o seguinte, eu queria setar SetPlayerVirtualWorld(playerid,id); no script para ele poder ver os carros e players em vida real.

Ja tentei setar so que ele bugava e nao conseguia sair do departamento por conter o mundo errado ou Bug!

Script e este ai e agradecia que me ajudasse:

pawn Код:
#include <a_samp>
#define CSEGURANCA 9234
#define COLOR_WHITE 0xFFFFFFAA
#pragma tabsize 0
new Camera[MAX_PLAYERS];
#if defined FILTERSCRIPT

// ==============
public OnFilterScriptInit()
{
    print("\n-------------------------------------- ");
    print(" Sistema de Cвmeras By: Jonathan Feitosa ");
    print(" ATIVADO :DDDDDDDDDDDDDDDDDDDDDDDDDDDDD  ");
    print("--------------------------------------\n ");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Sistema de Cвmeras By: Jonathan Feitosa ");
    print(" DESATIVADO :CCCCCCCCCCCCCCCCCCCCCC ");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    return 1;
}
public OnPlayerConnect(playerid)
{
    Camera[playerid] = 0;
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
       if (strcmp("/cctv", cmdtext, true, 10) == 0)
       {
         if(IsPlayerInRangeOfPoint(playerid, 1,542.6953,-897.9803,1304.7952))
         {
         }else{
         SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo Estб no Centro de Seguranзa!");
         return 1;
         }
             Camera[playerid] = 1;
             ShowPlayerDialog(playerid, CSEGURANCA, DIALOG_STYLE_LIST, "- Cameras -Criado Por : Jonathan_Feitosa  - ", "Lugares Importantes\nRuas Importantes\nDesligar Camera", "Selecionar", "Sair");
             return 1;
       }
       if (strcmp("/desligarcamera", cmdtext, true, 10) == 0)
       {
       if(Camera[playerid] == 1)
       {
            Camera[playerid] = 0;
            } else {
            SendClientMessage(playerid, COLOR_WHITE, " Vocк Nгo Estб Usando a Camera! :C");
           return 1;
            }
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,543.5757,-897.2561,1304.7952);
           return 1;
     }
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     // ============ Cameras de Seguranзas Apenas Para DETRAN By: Jonathan Feitosa =========================
if(dialogid == CSEGURANCA)
    {
        if(response)
        {
            if(listitem == 0)
            {

            ShowPlayerDialog(playerid, CSEGURANCA+1, DIALOG_STYLE_LIST, "Cameras - Lugares Importantes -", "Departamento de Policia\n24-7\nLoja de Armas\nHospital\nBanco", "Ver Camera", "Sair");
            }
            if(listitem == 1) //Camera 2
            {
            ShowPlayerDialog(playerid, CSEGURANCA+2, DIALOG_STYLE_LIST, "Cameras - Ruas Importantes", "Bairro Centro de Los Santos\nBairro Pequeno Mexico\nBairro Idlewood\nBairro Downtown Los Santos\nBairro Morro\nBairro Parque Gleen\nRua Estaзгo", "Selecionar", "Cancelar");
            }
            if(listitem == 2) //Camera Sair
            {
            SetCameraBehindPlayer(playerid);
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,543.5757,-897.2561,-100);
            SetPlayerInterior(playerid,6);
          }
        }
      }
if(dialogid == CSEGURANCA+1)
    {
        if(response) // Lugares Importantes !
        {
            if(listitem == 0) // Departamento de Policia - JFS OWNA !
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Departamento de Policia ", 5000, 3);
                SetPlayerCameraPos(playerid, 1540.8064,-1646.7190,21.9511);
                SetPlayerCameraLookAt(playerid, 1537.5170,-1650.7240,20.1858);
                SetPlayerPos(playerid, 1540.8064,-1646.7190,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 24-7
            {
               SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
               GameTextForPlayer(playerid, "~r~24-7 ", 5000, 3);
               SetPlayerCameraPos(playerid, 1365.2867,-1748.6545,22.7734);
               SetPlayerCameraLookAt(playerid, 1363.8175,-1748.6436,22.3906);
               SetPlayerPos(playerid, 1365.2867,-1748.6545,-100);
               TogglePlayerControllable(playerid,0);
               SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // Loja de Arma
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Loja de Armas ", 5000, 3);
                SetPlayerCameraPos(playerid, 1756.4012,-1172.3580,23.8281);
                SetPlayerCameraLookAt(playerid, 1758.6932,-1172.0590,23.8281);
                SetPlayerPos(playerid, 1756.4012,-1172.3580,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // Hospital
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Hospital ", 5000, 3);
                SetPlayerCameraPos(playerid, 1179.7465,-1353.2474,19.4560);
                SetPlayerCameraLookAt(playerid, 1181.5865,-1351.5922,19.4502);
                SetPlayerPos(playerid, 1179.7465,-1353.2474,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 4) // Banco
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Banco ", 5000, 3);
                SetPlayerCameraPos(playerid, 1419.8663,-1045.7428,27.3906);
                SetPlayerCameraLookAt(playerid, 1422.1774,-1044.4663,27.3906);
                SetPlayerPos(playerid, 1419.8663,-1045.7428,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
      }
    }

if(dialogid == CSEGURANCA+2)
 {
        if(response) // RUAS/BAIRROS
        {
            if(listitem == 0) // Bairro CENTRO
            {
               ShowPlayerDialog(playerid, CSEGURANCA+3, DIALOG_STYLE_LIST, "Cameras - Bairro Centro de Los Santos", "Rua Centro 1\nRua Centro 2", "Selecionar", "Cancelar");
            }
            if(listitem == 1) // bAIRRO Pequeno Mexico
            {
               ShowPlayerDialog(playerid, CSEGURANCA+4, DIALOG_STYLE_LIST, "Cameras - Bairro Pequeno Mexico", "Rua Mexico 1\nRua Mexico 2", "Selecionar", "Cancelar");
            }
            if(listitem == 2) // Bairro Idlewood
            {
            ShowPlayerDialog(playerid, CSEGURANCA+5, DIALOG_STYLE_LIST, "Cameras - Bairro Idlewood", "Rua Idlewood 1\nRua Idlewood 2\nRua Idlewood 3\nRua Idlewood 4\nRua Idlewood 5", "Selecionar", "Cancelar");
            }
            if(listitem == 3) // Bairro Downtown Los Santos
            {
            ShowPlayerDialog(playerid, CSEGURANCA+6, DIALOG_STYLE_LIST, "Cameras - Bairro Downtown Los Santos", "Rua Downtown 1\nRua Downtown 2\nRua Downtown 3", "Selecionar", "Cancelar");
            }
            if(listitem == 4) // Bairro Morro
            {
            ShowPlayerDialog(playerid, CSEGURANCA+7, DIALOG_STYLE_LIST, "Cameras - Bairro Morro", "Rua Morro 1\nRua Morro 2\nRua Morro 3\nRua Morro 4", "Selecionar", "Cancelar");
            }
            if(listitem == 5) // Parque Glee
            {
            ShowPlayerDialog(playerid, CSEGURANCA+8, DIALOG_STYLE_LIST, "Cameras - Bairro Parque Gleen", "Rua Parque Green 1\nRua Parque Green 2\nRua Parque Green 3", "Selecionar", "Cancelar");
            }
            if(listitem == 6) // Rua Estacгo
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Estaзгo ", 5000, 3);
                SetPlayerCameraPos(playerid, 1938.3961,-1933.5433,13.3828);
                SetPlayerCameraLookAt(playerid, 934.4586,-1934.7949,13.3828);
                SetPlayerPos(playerid, 1938.3961,-1933.5433,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ====================================================================================
if(dialogid == CSEGURANCA+3) // Bairro Centro de Los Santos
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Centro 1 ", 5000, 3);
                SetPlayerCameraPos(playerid, 1671.9045,-1740.2220,13.5465);
                SetPlayerCameraLookAt(playerid, 1665.6132,-1739.1383,13.5450);
                SetPlayerPos(playerid, 1671.9045,-1740.2220,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Centro 2 ", 5000, 3);
                SetPlayerCameraPos(playerid, 1744.9170,-1590.0386,13.5397);
                SetPlayerCameraLookAt(playerid, 1742.4379,-1590.1549,13.5423);
                SetPlayerPos(playerid, 1744.9170,-1590.0386,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// =============================================================================
if(dialogid == CSEGURANCA+4) // Bairro Pequeno Mexico
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1727.5045,-1738.7094,13.5469);
                SetPlayerCameraLookAt(playerid, 1729.3236,-1737.5027,13.5469);
                SetPlayerPos(playerid, 1727.5045,-1738.7094,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1805.2159,-1839.0151,13.5781);
                SetPlayerCameraLookAt(playerid, 1798.6588,-1837.9792,13.5781);
                SetPlayerPos(playerid, 1805.2159,-1839.0151,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// =====================================================================
if(dialogid == CSEGURANCA+5) // Bairro idlwood
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1820.5284,-1605.0304,13.3766);
                SetPlayerCameraLookAt(playerid, 1821.2069,-1601.5466,13.3609);
                SetPlayerPos(playerid, 1820.5284,-1605.0304,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1821.2452,-1848.9436,13.4141);
                SetPlayerCameraLookAt(playerid, 1820.7043,-1846.1687,13.4141);
                SetPlayerPos(playerid, 1821.2452,-1848.9436,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1930.7804,-1764.3730,13.5391);
                SetPlayerCameraLookAt(playerid, 933.9102,-1763.2849,13.5469);
                SetPlayerPos(playerid, 1930.7804,-1764.3730,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // 4
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1862.5474,-1480.7346,13.3200);
                SetPlayerCameraLookAt(playerid, 1865.3745,-1481.5613,12.3825);
                SetPlayerPos(playerid, 1862.5474,-1480.7346,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 4) // 5
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1805.2159,-1839.0151,13.5781);
                SetPlayerCameraLookAt(playerid, 1798.6588,-1837.9792,13.5781);
                SetPlayerPos(playerid, 1805.2159,-1839.0151,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ========================================================================
    if(dialogid == CSEGURANCA+8) // Bairro Parque Gleen
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1855.3892,-1268.3625,13.3906);
                SetPlayerCameraLookAt(playerid, 1855.1689,-1271.5760,13.3934);
                SetPlayerPos(playerid, 1855.3892,-1268.3625,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1874.3866,-1135.7489,23.7344);
                SetPlayerCameraLookAt(playerid, 1878.0491,-1135.7958,23.7632);
                SetPlayerPos(playerid, 1874.3866,-1135.7489,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1842.3285,-1188.6066,23.6503);
                SetPlayerCameraLookAt(playerid, 1838.7637,-1187.7839,23.8281);
                SetPlayerPos(playerid, 1842.3285,-1188.6066,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ===============================================================
    if(dialogid == CSEGURANCA+6) // Bairro Downtown Los Santos
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1581.3748,-1168.5712,24.0781);
                SetPlayerCameraLookAt(playerid, 1580.9467,-1166.5466,24.0781);
                SetPlayerPos(playerid, 1581.3748,-1168.5712,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1376.6577,-1148.2861,23.8430);
                SetPlayerCameraLookAt(playerid, 1372.6255,-1148.2712,23.8430);
                SetPlayerPos(playerid, 1376.6577,-1148.2861,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1453.2278,-952.8773,36.1234);
                SetPlayerCameraLookAt(playerid, 1458.9070,-953.4402,36.1235);
                SetPlayerPos(playerid, 1453.2278,-952.8773,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ================================================================
    if(dialogid == CSEGURANCA+7) // Bairro Morro
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1943.0764,-980.5031,48.1086);
                SetPlayerCameraLookAt(playerid, 1947.7219,-980.4798,47.6856);
                SetPlayerPos(playerid, 1943.0764,-980.5031,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2147.2004,-949.5068,72.7676);
                SetPlayerCameraLookAt(playerid, 2147.6794,-953.7840,72.1721);
                SetPlayerPos(playerid, 2147.2004,-949.5068,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2449.0688,-895.5662,100.0895);
                SetPlayerCameraLookAt(playerid, 2453.9451,-900.0700,98.8847);
                SetPlayerPos(playerid, 2449.0688,-895.5662,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // 4
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2637.8315,-1005.6577,87.1044);
                SetPlayerCameraLookAt(playerid, 2635.7688,-1003.9021,87.1044);
                SetPlayerPos(playerid, 2637.8315,-1005.6577,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
              }
             }
           }
          return 1;
 }
Exemplo do que fiz:
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerVirtualWorld(playerid,0)
                SetPlayerCameraPos(playerid, 2637.8315,-1005.6577,87.1044);
                SetPlayerCameraLookAt(playerid, 2635.7688,-1003.9021,87.1044);
                SetPlayerPos(playerid, 2637.8315,-1005.6577,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
Assim eu via os carros estacionados e players sу que saindo da esquadra nao dava nao, nao dava pickups
Reply
#2

Seu Script Fica Assim
pawn Код:
#include <a_samp>

#define CSEGURANCA 9234

#define COLOR_WHITE 0xFFFFFFAA

#pragma tabsize 0

new Camera[MAX_PLAYERS];

// ==============
public OnFilterScriptInit()
{
    print("\n-------------------------------------- ");
    print(" Sistema de Cвmeras By: Jonathan Feitosa ");
    print(" ATIVADO :DDDDDDDDDDDDDDDDDDDDDDDDDDDDD  ");
    print("--------------------------------------\n ");
    Camera[playerid] = 0;
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
main()
{
    print("\n----------------------------------");
    print(" Sistema de Cвmeras By: Jonathan Feitosa ");
    print(" DESATIVADO :CCCCCCCCCCCCCCCCCCCCCC ");
    print("----------------------------------\n");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
       if (strcmp("/cctv", cmdtext, true, 10) == 0)
       {
         if(IsPlayerInRangeOfPoint(playerid, 1,542.6953,-897.9803,1304.7952))
         {
         }else{
         SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo Estб no Centro de Seguranзa!");
         return 1;
         }
             Camera[playerid] = 1;
             ShowPlayerDialog(playerid, CSEGURANCA, DIALOG_STYLE_LIST, "- Cameras -Criado Por : Jonathan_Feitosa  - ", "Lugares Importantes\nRuas Importantes\nDesligar Camera", "Selecionar", "Sair");
             return 1;
       }
       if (strcmp("/desligarcamera", cmdtext, true, 10) == 0)
       {
       if(Camera[playerid] == 1)
       {
            Camera[playerid] = 0;
            } else {
            SendClientMessage(playerid, COLOR_WHITE, " Vocк Nгo Estб Usando a Camera! :C");
           return 1;
            }
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,543.5757,-897.2561,1304.7952);
           return 1;
     }
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     // ============ Cameras de Seguranзas Apenas Para DETRAN By: Jonathan Feitosa =========================
if(dialogid == CSEGURANCA)
    {
        if(response)
        {
            if(listitem == 0)
            {

            ShowPlayerDialog(playerid, CSEGURANCA+1, DIALOG_STYLE_LIST, "Cameras - Lugares Importantes -", "Departamento de Policia\n24-7\nLoja de Armas\nHospital\nBanco", "Ver Camera", "Sair");
            }
            if(listitem == 1) //Camera 2
            {
            ShowPlayerDialog(playerid, CSEGURANCA+2, DIALOG_STYLE_LIST, "Cameras - Ruas Importantes", "Bairro Centro de Los Santos\nBairro Pequeno Mexico\nBairro Idlewood\nBairro Downtown Los Santos\nBairro Morro\nBairro Parque Gleen\nRua Estaзгo", "Selecionar", "Cancelar");
            }
            if(listitem == 2) //Camera Sair
            {
            SetCameraBehindPlayer(playerid);
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,543.5757,-897.2561,-100);
            SetPlayerInterior(playerid,6);
          }
        }
      }
if(dialogid == CSEGURANCA+1)
    {
        if(response) // Lugares Importantes !
        {
            if(listitem == 0) // Departamento de Policia - JFS OWNA !
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Departamento de Policia ", 5000, 3);
                SetPlayerCameraPos(playerid, 1540.8064,-1646.7190,21.9511);
                SetPlayerCameraLookAt(playerid, 1537.5170,-1650.7240,20.1858);
                SetPlayerPos(playerid, 1540.8064,-1646.7190,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 24-7
            {
               SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
               GameTextForPlayer(playerid, "~r~24-7 ", 5000, 3);
               SetPlayerCameraPos(playerid, 1365.2867,-1748.6545,22.7734);
               SetPlayerCameraLookAt(playerid, 1363.8175,-1748.6436,22.3906);
               SetPlayerPos(playerid, 1365.2867,-1748.6545,-100);
               TogglePlayerControllable(playerid,0);
               SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // Loja de Arma
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Loja de Armas ", 5000, 3);
                SetPlayerCameraPos(playerid, 1756.4012,-1172.3580,23.8281);
                SetPlayerCameraLookAt(playerid, 1758.6932,-1172.0590,23.8281);
                SetPlayerPos(playerid, 1756.4012,-1172.3580,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // Hospital
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Hospital ", 5000, 3);
                SetPlayerCameraPos(playerid, 1179.7465,-1353.2474,19.4560);
                SetPlayerCameraLookAt(playerid, 1181.5865,-1351.5922,19.4502);
                SetPlayerPos(playerid, 1179.7465,-1353.2474,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 4) // Banco
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Banco ", 5000, 3);
                SetPlayerCameraPos(playerid, 1419.8663,-1045.7428,27.3906);
                SetPlayerCameraLookAt(playerid, 1422.1774,-1044.4663,27.3906);
                SetPlayerPos(playerid, 1419.8663,-1045.7428,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
      }
    }

if(dialogid == CSEGURANCA+2)
 {
        if(response) // RUAS/BAIRROS
        {
            if(listitem == 0) // Bairro CENTRO
            {
               ShowPlayerDialog(playerid, CSEGURANCA+3, DIALOG_STYLE_LIST, "Cameras - Bairro Centro de Los Santos", "Rua Centro 1\nRua Centro 2", "Selecionar", "Cancelar");
            }
            if(listitem == 1) // bAIRRO Pequeno Mexico
            {
               ShowPlayerDialog(playerid, CSEGURANCA+4, DIALOG_STYLE_LIST, "Cameras - Bairro Pequeno Mexico", "Rua Mexico 1\nRua Mexico 2", "Selecionar", "Cancelar");
            }
            if(listitem == 2) // Bairro Idlewood
            {
            ShowPlayerDialog(playerid, CSEGURANCA+5, DIALOG_STYLE_LIST, "Cameras - Bairro Idlewood", "Rua Idlewood 1\nRua Idlewood 2\nRua Idlewood 3\nRua Idlewood 4\nRua Idlewood 5", "Selecionar", "Cancelar");
            }
            if(listitem == 3) // Bairro Downtown Los Santos
            {
            ShowPlayerDialog(playerid, CSEGURANCA+6, DIALOG_STYLE_LIST, "Cameras - Bairro Downtown Los Santos", "Rua Downtown 1\nRua Downtown 2\nRua Downtown 3", "Selecionar", "Cancelar");
            }
            if(listitem == 4) // Bairro Morro
            {
            ShowPlayerDialog(playerid, CSEGURANCA+7, DIALOG_STYLE_LIST, "Cameras - Bairro Morro", "Rua Morro 1\nRua Morro 2\nRua Morro 3\nRua Morro 4", "Selecionar", "Cancelar");
            }
            if(listitem == 5) // Parque Glee
            {
            ShowPlayerDialog(playerid, CSEGURANCA+8, DIALOG_STYLE_LIST, "Cameras - Bairro Parque Gleen", "Rua Parque Green 1\nRua Parque Green 2\nRua Parque Green 3", "Selecionar", "Cancelar");
            }
            if(listitem == 6) // Rua Estacгo
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Estaзгo ", 5000, 3);
                SetPlayerCameraPos(playerid, 1938.3961,-1933.5433,13.3828);
                SetPlayerCameraLookAt(playerid, 934.4586,-1934.7949,13.3828);
                SetPlayerPos(playerid, 1938.3961,-1933.5433,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ====================================================================================
if(dialogid == CSEGURANCA+3) // Bairro Centro de Los Santos
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Centro 1 ", 5000, 3);
                SetPlayerCameraPos(playerid, 1671.9045,-1740.2220,13.5465);
                SetPlayerCameraLookAt(playerid, 1665.6132,-1739.1383,13.5450);
                SetPlayerPos(playerid, 1671.9045,-1740.2220,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                GameTextForPlayer(playerid, "~r~Centro 2 ", 5000, 3);
                SetPlayerCameraPos(playerid, 1744.9170,-1590.0386,13.5397);
                SetPlayerCameraLookAt(playerid, 1742.4379,-1590.1549,13.5423);
                SetPlayerPos(playerid, 1744.9170,-1590.0386,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// =============================================================================
if(dialogid == CSEGURANCA+4) // Bairro Pequeno Mexico
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1727.5045,-1738.7094,13.5469);
                SetPlayerCameraLookAt(playerid, 1729.3236,-1737.5027,13.5469);
                SetPlayerPos(playerid, 1727.5045,-1738.7094,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1805.2159,-1839.0151,13.5781);
                SetPlayerCameraLookAt(playerid, 1798.6588,-1837.9792,13.5781);
                SetPlayerPos(playerid, 1805.2159,-1839.0151,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// =====================================================================
if(dialogid == CSEGURANCA+5) // Bairro idlwood
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1820.5284,-1605.0304,13.3766);
                SetPlayerCameraLookAt(playerid, 1821.2069,-1601.5466,13.3609);
                SetPlayerPos(playerid, 1820.5284,-1605.0304,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1821.2452,-1848.9436,13.4141);
                SetPlayerCameraLookAt(playerid, 1820.7043,-1846.1687,13.4141);
                SetPlayerPos(playerid, 1821.2452,-1848.9436,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1930.7804,-1764.3730,13.5391);
                SetPlayerCameraLookAt(playerid, 933.9102,-1763.2849,13.5469);
                SetPlayerPos(playerid, 1930.7804,-1764.3730,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // 4
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1862.5474,-1480.7346,13.3200);
                SetPlayerCameraLookAt(playerid, 1865.3745,-1481.5613,12.3825);
                SetPlayerPos(playerid, 1862.5474,-1480.7346,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 4) // 5
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1805.2159,-1839.0151,13.5781);
                SetPlayerCameraLookAt(playerid, 1798.6588,-1837.9792,13.5781);
                SetPlayerPos(playerid, 1805.2159,-1839.0151,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ========================================================================
    if(dialogid == CSEGURANCA+8) // Bairro Parque Gleen
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1855.3892,-1268.3625,13.3906);
                SetPlayerCameraLookAt(playerid, 1855.1689,-1271.5760,13.3934);
                SetPlayerPos(playerid, 1855.3892,-1268.3625,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1874.3866,-1135.7489,23.7344);
                SetPlayerCameraLookAt(playerid, 1878.0491,-1135.7958,23.7632);
                SetPlayerPos(playerid, 1874.3866,-1135.7489,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1842.3285,-1188.6066,23.6503);
                SetPlayerCameraLookAt(playerid, 1838.7637,-1187.7839,23.8281);
                SetPlayerPos(playerid, 1842.3285,-1188.6066,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ===============================================================
    if(dialogid == CSEGURANCA+6) // Bairro Downtown Los Santos
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1581.3748,-1168.5712,24.0781);
                SetPlayerCameraLookAt(playerid, 1580.9467,-1166.5466,24.0781);
                SetPlayerPos(playerid, 1581.3748,-1168.5712,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1376.6577,-1148.2861,23.8430);
                SetPlayerCameraLookAt(playerid, 1372.6255,-1148.2712,23.8430);
                SetPlayerPos(playerid, 1376.6577,-1148.2861,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1453.2278,-952.8773,36.1234);
                SetPlayerCameraLookAt(playerid, 1458.9070,-953.4402,36.1235);
                SetPlayerPos(playerid, 1453.2278,-952.8773,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
        }
      }
    }
// ================================================================
    if(dialogid == CSEGURANCA+7) // Bairro Morro
    {
        if(response)
        {
            if(listitem == 0) // 1
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 1943.0764,-980.5031,48.1086);
                SetPlayerCameraLookAt(playerid, 1947.7219,-980.4798,47.6856);
                SetPlayerPos(playerid, 1943.0764,-980.5031,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 1) // 2
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2147.2004,-949.5068,72.7676);
                SetPlayerCameraLookAt(playerid, 2147.6794,-953.7840,72.1721);
                SetPlayerPos(playerid, 2147.2004,-949.5068,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 2) // 3
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2449.0688,-895.5662,100.0895);
                SetPlayerCameraLookAt(playerid, 2453.9451,-900.0700,98.8847);
                SetPlayerPos(playerid, 2449.0688,-895.5662,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
            }
            if(listitem == 3) // 4
            {
                SendClientMessage(playerid, COLOR_WHITE, " >> Para Desligar a Camera Use: /desligarcamera <<");
                SetPlayerCameraPos(playerid, 2637.8315,-1005.6577,87.1044);
                SetPlayerCameraLookAt(playerid, 2635.7688,-1003.9021,87.1044);
                SetPlayerPos(playerid, 2637.8315,-1005.6577,-100);
                TogglePlayerControllable(playerid,0);
                SetPlayerInterior(playerid,0);
              }
             }
           }
          return 1;
 }
E So Voce Arrumar no /desligarcamera. Fica Assim.
pawn Код:
if (strcmp("/desligarcamera", cmdtext, true, 10) == 0)
       {
       if(Camera[playerid] == 1)
       {
            Camera[playerid] = 0;
            } else {
            SendClientMessage(playerid, COLOR_WHITE, " Vocк Nгo Estб Usando a Camera! :C");
           return 1;
            }
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,1);
            TogglePlayerControllable(playerid,1);
            SetPlayerPos(playerid,543.5757,-897.2561,1304.7952);
           return 1;
     }
    return 0;
}
Reply
#3

estб dando erro no OnFilterScriptInit

Linhas:
pawn Код:
Camera[playerid] = 0;
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
    SendClientMessage(playerid,COLOR_WHITE," Esse GM Estб Usando o Sistema de Cвmera Criado Por: Jonathan Feitosa");
Reply
#4

Em OnFilterScriptInit ou OnGameModeInit Voce So Coloca Isso e Mais Facil.
pawn Код:
Camera[playerid] = 0;
Reply
#5

Dб erro por conter playerid

error 017: undefined symbol "playerid"
Reply
#6

Onde Voce Colocou?
Reply
#7

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Onde Voce Colocou?
OnGameModeInit
Reply
#8

Os objetos aparecem e esta certo com os objetos, o que queria que aparece-se era os carros estacionados e players!

Funciona com SetPlayerVirtualWorld(playerid,0);

sу que estou tendo um problema ao sair do interior 6 ao fazer /desligarcamera
Reply
#9

Voce Ta Usando Como FS?
Coloca Ele Dentro do GameMode.
Reply
#10

Eu estou usando esse script no gamemode principal, eu setei mundo para 0 e dava bem, sу nao sei й como o mete lo normal usando o comando /desligarcamera para poder sair do edificio sem tal problema ficar preso la dentro por estar mundo errado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)