[Ajuda]
#1

Bom Galera eu Gostaria de Tirar essa Seta que fica empurando a porta tirar tudu mermo ate do interior , teria que apertar ENTER , ou F , para entrar/sair bom Gostaria isso so no Binco e na DP de LS aqui SS de como qi й :





Peguei isso de outro topico so pra aproveitar .


Espero que alguem me ajude .
Reply
#2

Vocк quer tirar a Seta mais deixar a entrada? meio que trocar a seta por uma tecla?
Reply
#3

Ponha isto sem seu OnGameModeInit

PHP код:
DisableInteriorEnterExits(); 
Isso ira tirar todos, o que vc quer, terб que ser feito com Pickup e KeyStateChange...
Reply
#4

pra tirar coloca isso no ongamemodeinit

DisableInteriorEnterExits();
Reply
#5

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
Vocк quer tirar a Seta mais deixar a entrada? meio que trocar a seta por uma tecla?
Sim , Isso quero que tire a seta mas deixe com entrada como eu disse , Colocar um Icone que aperte ENTER ou F para entrar/sair


Quote:
Originally Posted by [R] ousenber [K]
Посмотреть сообщение
Ponha isto sem seu OnGameModeInit

PHP код:
DisableInteriorEnterExits(); 
Isso ira tirar todos, o que vc quer, terб que ser feito com Pickup e KeyStateChange...
Quote:
Originally Posted by BlackCoder
Посмотреть сообщение
pra tirar coloca isso no ongamemodeinit

DisableInteriorEnterExits();
Sim , e agora pra eu por os icones para Entrar Apertando ENTER/F ?
Reply
#6

Quote:
Originally Posted by [R] ousenber [K]
Посмотреть сообщение
Ponha isto sem seu OnGameModeInit

PHP код:
DisableInteriorEnterExits(); 
Isso ira tirar todos, o que vc quer, terб que ser feito com Pickup e KeyStateChange...
para o criador do topico, lembra-te que isto vai apagar todas as setas, e dai para a frente, tu й que vais criar o teu proprio interior, vou deixar aqui uma ajuda como eu uso:

pawn Код:
#define MAX_ENTERS 65 -> Maximo de entrada que usas
new Float:E_enterdist = 2.0; // Distancia para entrar
new Float:E_exitdist = 2.0; // Distancia para sair

//definir as entradas, saidas, interiores e virtual worlds
new enters[MAX_ENTERS][e_info] =
{
    //Department's
    {1555.5057,-1675.6614,16.1953246.7508,62.3229,1003.6406  ,6,0}, // LSPD
    {626.9644,-571.7914,17.9207,    246.7508,62.3229,1003.6407  ,6,1}, // LSPD DILIMORE
    {2287.0422,2432.3679,10.8203,   237.9760,138.8796,1003.0234 ,3,0}, // LVPD
    //MadDog
    {1298.5226,-797.9874,84.1406,   1260.9025,-785.6703,1091.9063, 5,0}, // MadDog
    //Drugs Get
    {2165.9912,-1671.1353,15.0732318.6743,1114.7061,1083.8828, 5,0},
    //Jizzy
    {-2625.3604,1412.5974,7.0938,   -2636.8147,1402.8307,906.4609 ,3,0}, // jizzy
    //Donuts
    {-144.0474,1225.2198,19.8992,   376.9060,-192.9400,1000.640, 17,0}, // lvdonut
    {-1942.1096,2379.3816,49.7031376.9060,-192.9400,1000.640, 17,1}, // barcominterior restaurant
    {-2524.5073,1216.1080,37.6724376.9060,-192.9400,1000.640, 17,2}, // restaurant SF dinners
    //BurgerShots
    {810.4847,-1616.2009,13.5469,   363.0016,-74.8700,1001.5078     ,10,0}, // burger LS1
    {1199.2120,-918.1466,43.1235,   363.0016,-74.8700,1001.5078     ,10,1},// burger LS2
    {-2336.8687,-166.8553,35.5547363.0016,-74.8700,1001.5078     ,10,2},// burger SF1
    {-1912.4048,827.8880,35.2275,   363.0016,-74.8700,1001.5078     ,10,3}, // burger SF2
    {2472.8660,2034.1747,11.0625,   363.0016,-74.8700,1001.5078     ,10,4},  // burger LV1
    //CluCkinBell
    {2419.7942,-1508.9844,24.0000364.9470,-11.3761,1001.8516     ,9,0},// cluckin LS1
    {2398.5503,-1899.1993,13.5469364.9470,-11.3761,1001.8516     ,9,1}, // cluckin LS2
    {928.9139,-1352.9656,13.3438,   364.9470,-11.3761,1001.8516     ,9,2}, // clucnkin LS3
    {-2673.0479,257.9286,4.6328,    364.9470,-11.3761,1001.8516     ,9,3}, // cluckin sf1
    {-1817.3892,618.7050,35.1719,   364.9470,-11.3761,1001.8516     ,9,4}, // clukin sf2
    {2101.8926,2228.8242,11.0234,   364.9470,-11.3761,1001.8516     ,9,5},// cluckin LV1
    {2393.1460,2041.5586,10.8203,   364.9470,-11.3761,1001.8516     ,9,6}, // cluckin LV2
    {1157.9176,2072.2573,11.0625,   364.9470,-11.3761,1001.8516     ,9,7}, // cluckin LV3
    {-1213.9159,1830.4548,41.9297364.9470,-11.3761,1001.8516     ,9,8}, // cluckin LV4
    {172.5446,1177.4912,14.7578,    364.9470,-11.3761,1001.8516     ,9,9}, // cluckin LV5
    {1157.9176,2072.2573,11.0625,   364.9470,-11.3761,1001.8516     ,9,10}, // cluckin LV6
    //SubUrban
    {2112.7886,-1211.4552,23.9629203.777999,-48.492397,1001.804687   ,1,0}, // suburban LS1
    //Didier Sachs
    {499.5316,-1360.6343,16.3691,   207.054992,-138.804992,1003.507812  ,3,0},  // Didier LS
    //Pro Laps
    {454.2083,-1477.9951,30.8144,   204.332992,-166.694992,1000.523437 ,14,0}, // pro laps
    //Victim
    {-1694.6265,951.9664,24.8906,   226.293991,-7.431529,1002.210937    ,5,0}, //SF Victim1
    {461.7107,-1500.8361,31.0449,   226.293991,-7.431529,1002.210937    ,5,1}, // LS Victim
    //Zip
    {1456.4036,-1137.6631,23.9482161.391006,-93.159156,1001.804687   ,18,0}, // ZIP LS1
    {-1882.2866,866.5297,35.1719,   161.391006,-93.159156,1001.804687   ,18,1},  // ZIP SF1
    {2090.4727,2224.7012,11.0234,   161.391006,-93.159156,1001.804687   ,18,2}, // ZIP LV1
    //Binco
    {2244.3103,-1665.5452,15.4766207.737991,-109.019996,1005.132812      ,15,0},// bincols1
    {2101.8923,2257.3887, 207.737991,   207.737991,-109.019996,1005.132812      ,15,1}, // binco1
    //Bar's
    {2310.1089,-1643.5573,14.8270501.980987,-69.150199,998.757812    ,11,0}, // greenbottle
    {2441.1409,2065.4846,10.8203,   501.980987,-69.150199,998.757812    ,11,1}, // CrawBar Mistys
    {-2551.4106,194.1882,6.2266,    501.980987,-69.150199,998.757812    ,11,2}, // SF Gay Bar
    {-255.1495,2602.8564,62.8582,   501.980987,-69.150199,998.757812    ,11,3}, // V8 Club
    {-2242.1431,-88.1361,35.3203,   501.980987,-69.150199,998.757812    ,11,4}, // Mistys
    {-89.6034,1378.1903,10.4698,    -227.027999,1401.229980,27.765625   ,18,0}, // ovnibar
    //Stripers
    {2421.4810,-1219.2427,25.56191204.809936,-11.586799,1000.921875  ,2,0},   // pigpen
    {2506.8286,2120.2791,10.8398,   1204.809936,-11.586799,1000.921875  ,2,1}, // striplvl1
    {693.6900,1967.6849,5.5391,     1204.809936,-11.586799,1000.921875  ,2,2}, // putaslv gang hide
    {2543.2395,1025.2428,10.8203,   1204.809936,-11.586799,1000.921875  ,2,3}, // lvnudestripper
    // Pizza
    {2105.4873,-1806.4778,13.5547372.0846,-133.3613,1001.4922        ,5,0}, // pizza LS1
    {-1808.7266,945.9039,24.8906,   372.0846,-133.3613,1001.4922        ,5,1}, // pizza SF1
    {2082.9375,2224.7009,11.0234,   372.0846,-133.3613,1001.4922        ,5,2}, // pizza LV1
    {2351.7512,2533.6289,10.8203,   372.0846,-133.3613,1001.4922        ,5,3}, // pizza LV2
    {212.2334,-202.1889,1.5781,     372.0846,-133.3613,1001.4922        ,5,4}, // Pizza BlueBerry
    //24/7
    {1315.4246,-897.6821,39.5781,   5.0473,-31.4745,1003.5494       ,10,0}, // 24/7 LS1
    {1000.6025,-919.9705,42.3281,   5.0473,-31.4745,1003.5494       ,10,1}, // 24/7 LS2
    {1833.7754,-1842.5129,13.57815.0473,-31.4745,1003.5494       ,10,2}, // 24/7 LS3
    {1352.4050,-1759.2538,13.50785.0473,-31.4745,1003.5494       ,10,3},// 24/7 LS4
    {-2442.7327,755.4184,35.1719,   5.0473,-31.4745,1003.5494       ,10,4},// 24/7 SF1
    {2247.7036,2396.1680,10.8203,   5.0473,-31.4745,1003.5494       ,10,5}, // 24/7 LV1
    {2097.6145,2224.7014,11.0234,   5.0473,-31.4745,1003.5494       ,10,6}, // 24/7 LV2
    {2194.9414,1990.9648,12.2969,   5.0473,-31.4745,1003.5494       ,10,7}, // 24/7 LV3
    {2452.4976,2065.1912,10.8203,   5.0473,-31.4745,1003.5494       ,10,8}, // 24/7 LV4
    {-180.7285,1034.8706,19.7422,   5.0473,-31.4745,1003.5494       ,10,9}, // 24/7 LV5
    {1937.8262,2307.2808,10.8203,   5.0473,-31.4745,1003.5494       ,10,10}, // 24/7 LV6
    {1937.8262,2307.2808,10.8203,   5.0473,-31.4745,1003.5494       ,10,11}, // 24/7 LV7
    //Alhambras
    {1837.0397,-1682.3956,13.3228493.4867,-24.9608,1000.6719     ,17,0}, // alhambra
    {816.1158,-1386.0845,13.5968,   493.4867,-24.9608,1000.6719     ,17,1}, //Club With Alhambra
    {725.7031,-1450.8949,17.6953,   493.4867,-24.9608,1000.6719     ,17,2} //Yacht With Alhambra
};

//No OnGameModeInit uso isto para criar uns cones parecidos com as setas
for(new i=0; i<MAX_ENTERS; i++)
    {
         CreatePickup(19197,23,enters[i][aa_x],enters[i][aa_y],enters[i][aa_z]+0.03,-1);
    }

//No Comando /entrar
for(new i = 0;i<sizeof(enters);i++)
            {
                if(IsPlayerInRangeOfPoint(playerid,E_enterdist,enters[i][aa_x],enters[i][aa_y],enters[i][aa_z]))
                {
                    SetPlayerPos(playerid,enters[i][ii_x],enters[i][ii_y],enters[i][ii_z]);
                    SetPlayerInterior(playerid,enters[i][einterior]);
                    SetPlayerVirtualWorld(playerid,enters[i][eworld]);
                    SetCameraBehindPlayer(playerid);
                }
            }
//no comando /sair
for(new i = 0;i<sizeof(enters);i++)
            {
                if(IsPlayerInRangeOfPoint(playerid,E_exitdist,enters[i][ii_x],enters[i][ii_y],enters[i][ii_z]) && GetPlayerVirtualWorld(playerid) == enters[i][eworld])
                {
                    SetPlayerPos(playerid,enters[i][aa_x],enters[i][aa_y],enters[i][aa_z]);
                    SetPlayerInterior(playerid,0);
                    SetPlayerVirtualWorld(playerid,0);
                    SetCameraBehindPlayer(playerid);
                }
            }
Assim voce pode criar facilmente os seus interiores depois ainda pode melhorar com os angulos de visao, etc etc

PS: Se acha que te ajudei, Reputaзao
Reply
#7

Cria apenas o Pickup para mostrar onde й a entrada e use OnPlayerKeyStateChange.
Reply
#8

vc vai ter que pegar as cordenadas e
pawn Код:
//ongamemodeinit
CreatePickup(1239,1,1554.9597,-1675.5293,16.1953);//coordenadas da pm ls
//onplayerkeystatechange
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)// enter ou f
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
           
            if(IsPlayerInRangeOfPoint(playerid,2,1554.9597,-1675.5293,16.1953))//entrada dp
            {
                SetPlayerInterior(playerid,6);
                SetPlayerPos(playerid,246.8776,63.2193,1003.6406);
                SetPlayerFacingAngle(playerid,175.6011-180);
                SetCameraBehindPlayer(playerid);
                //SetarInfo(playerid,"Departamento de Policia");
                return 1;
            }
        }
     }
}
Reply
#9

Quote:
Originally Posted by BlackCoder
Посмотреть сообщение
vc vai ter que pegar as cordenadas e
pawn Код:
//ongamemodeinit
CreatePickup(1239,1,1554.9597,-1675.5293,16.1953);//coordenadas da pm ls
//onplayerkeystatechange
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)// enter ou f
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
           
            if(IsPlayerInRangeOfPoint(playerid,2,1554.9597,-1675.5293,16.1953))//entrada dp
            {
                SetPlayerInterior(playerid,6);
                SetPlayerPos(playerid,246.8776,63.2193,1003.6406);
                SetPlayerFacingAngle(playerid,175.6011-180);
                SetCameraBehindPlayer(playerid);
                //SetarInfo(playerid,"Departamento de Policia");
                return 1;
            }
        }
     }
}
assim da sua forma, voce so vai gastar linhas e tempo, se usar o meu tipo й muito mais facil e rapido :/
se voce perceber um pouco, utiliza a minha forma e adapta para onplayer pickup
Reply
#10

Quote:
Originally Posted by StreetGT
Посмотреть сообщение
assim da sua forma, voce so vai gastar linhas e tempo, se usar o meu tipo й muito mais facil e rapido :/
se voce perceber um pouco, utiliza a minha forma e adapta para onplayer pickup
legal seu mйtodo mas agora que ja tб pronto no gm dexa assim suhushs, abraзo
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)