[PEDIDO]Stand Compativel
#1

Boas eu ja usei o search e nao encontro um stand compativel com o Game Mode GTA:RP tipo para adecionar carros e atraves dum bloco de notas a dizer Cars.cfg vejam

Quote:

536,2119.240722,-1139.907470,24.741949,305.291290,3,0,Dealership,Bl ade,100000,,0,1
536,506.943267,-1300.168334,16.918767,218.226119,0,102,Dealership, Blade,100000,,0,0
521,298.460296,-1536.339843,24.374507,55.268928,66,66,Dealership,F CR-900,200000,,0,0
561,2135.478759,-1134.227294,25.560628,90.036361,79,79,Dealership,S tratum,550000,,0,0
561,2134.719482,-1144.467651,24.714576,88.031745,7,7,Dealership,Str atum,550000,,0,1
561,2119.022216,-1148.059204,24.266788,305.485900,86,86,Dealership, Stratum,550000,,0,1
402,546.550720,-1272.429687,17.079853,1.819082,0,0,Dealership,Buff alo,250000,,0,1
558,2134.744140,-1137.776123,25.159837,89.998497,0,0,Concessionбrio ,Uranus,650000,,0,0
526,2135.295166,-1140.906005,25.006961,87.637954,1,0,Concessionбrio ,Fortune,90000,,0,0
526,2136.462890,-1151.755737,23.937528,21.529882,86,86,Dealership,F ortune,90000,,0,1
492,2135.619140,-1130.164306,25.434009,89.521537,86,0,Dealership,Gr eenwood,80000,,0,0
468,292.262115,-1545.385986,24.448646,54.753906,86,86,Dealership,S anchez,20000,,0,0
468,281.710571,-1530.951538,24.350019,232.892089,0,1,Dealership,Sa nchez,20000,,0,0
534,278.028656,-1534.923950,24.338096,236.158432,11,11,Dealership, Remington,150000,,0,0
550,2135.916992,-1126.636108,25.337848,87.172729,3,3,Dealership,Sun rise,200000,,0,0
565,528.652893,-1290.666015,16.867523,0.013407,3,0,Dealership,Flas h,500000,,0,0
405,2120.128417,-1126.219726,25.259904,302.503417,0,0,Dealership,Se ntinel,350000,,0,0
565,535.426818,-1290.568481,17.048688,0.278414,11,0,Dealership,Fla sh,500000,,0,0
527,2117.649902,-1156.889526,24.153087,338.570587,0,0,Dealership,Ca drona,130000,,0,0
560,2117.923339,-1144.851928,24.380451,303.713806,-1,-1,Concessionбrio,Sultan,700000,,0,0
551,538.393737,-1290.005615,17.124689,2.173892,0,0,Dealership,Meri t,300000,,0,0
480,555.425170,-1290.579467,17.021947,0.382422,25,1,Dealership,Com et,390000,,0,0
551,2121.817626,-1157.063598,23.905109,331.985595,44,44,Dealership, Merit,300000,,0,0
560,2119.212158,-1131.637573,24.963758,305.578002,0,0,Concessionбri o,Sultan,700000,,0,0
579,569.787414,-1312.119384,17.173740,13.866514,0,0,Dealership,Hun tley,200000,,0,0
401,562.004028,-1279.634033,17.024963,359.388977,101,1,Concessionб rio,Bravura,50000,,0,0
506,557.973205,-1278.708129,17.237020,1.156998,86,0,Dealership,Sup erGT,750000,,0,0
506,554.448486,-1278.636962,17.235734,1.505406,0,1,Dealership,Supe rGT,750000,,0,0
429,550.948913,-1278.489624,17.368864,359.878051,44,0,Dealership,B anshee,400000,,0,1
429,547.000854,-1278.746215,16.927906,1.769345,0,1,Dealership,Bans hee,400000,,0,1
409,543.042846,-1278.521240,17.330778,1.126631,45,32,Dealership,St retch,900000,,0,0
409,560.012695,-1272.159301,17.329359,0.139890,0,0,Dealership,Stre tch,900000,,0,0
559,539.130065,-1316.626342,17.351358,180.875854,7,7,Dealership,Je ster,600000,,0,0
559,535.008361,-1316.703247,17.347667,178.669372,6,0,Dealership,Je ster,600000,,0,0
405,530.297119,-1317.404541,17.385444,179.583145,120,123,Dealershi p,Sentinel,350000,,0,0
405,525.851501,-1317.413330,17.386226,181.006500,14,123,Dealership ,Sentinel,350000,,0,0
401,521.946166,-1317.349731,17.334564,181.219009,0,0,Dealership,Br avura,50000,,0,1
401,514.538330,-1327.222045,17.334514,20.550430,0,0,Dealership,Bra vura,50000,,0,0
579,517.944702,-1317.531860,17.174776,180.821136,0,0,Dealership,Hu ntley,200000,,0,1
579,2119.595458,-1122.514648,25.297775,301.343658,86,86,Concessionб rio,Huntley,200000,,0,1
565,558.713073,-1290.837890,16.931600,0.209398,58,1,Dealership,Fla sh,500000,,0,0
541,552.148986,-1290.593505,16.873083,1.399734,0,13,Dealership,Bul let,850000,,0,0
429,500.981201,-1303.688964,16.921871,219.432312,1,6,Dealership,Ba nshee,400000,,0,0
415,548.917968,-1290.685913,17.018964,1.180363,0,0,Dealership,Chee tah,800000,,0,0
480,545.303283,-1290.734008,16.903345,0.875015,0,0,Dealership,Come t,390000,,0,0
562,520.767150,-1290.718627,16.901256,1.222882,11,11,Dealership,El egy,590000,,0,0
411,541.897460,-1290.283203,16.969272,359.213775,0,0,Dealership,In fernus,10000000,,0,0
559,542.282958,-1317.243041,16.898513,179.263244,0,0,Dealership,Je ster,600000,,0,0
561,532.329223,-1290.638549,17.061777,0.809961,8,17,Dealership,Str atum,550000,,0,0
560,563.215698,-1291.192138,16.953250,0.405901,0,0,Dealership,Sult an,700000,,0,1
558,524.803833,-1290.586791,16.875488,1.821678,0,0,Stander,Uranus, 650000,,0,0
402,542.875488,-1272.739257,16.999691,359.813385,0,0,Dealership,Bu ffalo,250000,,0,0
451,573.278625,-1310.806884,16.953441,192.767059,0,0,Dealership,Tu rismo,810000,,0,0
562,2147.583984,-1198.957275,23.488901,268.309692,7,7,Dealership,El egy,590000,,0,0
562,2147.655517,-1194.431274,23.429557,269.519714,79,79,Dealership, Elegy,590000,,0,0
562,2147.578369,-1203.661132,23.447446,271.066833,0,0,Dealership,El egy,590000,,0,0
541,2148.703613,-1161.658813,23.404661,91.917984,6,6,Dealership,Bul let,850000,,0,0
541,2161.285400,-1153.093505,23.469476,267.642761,0,0,Dealership,Bu llet,850000,,0,0
541,2161.161132,-1143.764160,24.414472,270.442993,3,0,Dealership,Bu llet,850000,,0,0
541,2161.198486,-1148.255126,23.974163,270.838867,43,43,Dealership, Bullet,850000,,0,0
541,2161.457763,-1158.176757,23.414112,269.070800,0,0,Dealership,Bu llet,850000,,0,1
411,2148.947021,-1138.519897,25.226612,92.133377,3,0,Concessionбrio ,Infernus,10000000,,0,0
411,2148.258789,-1143.423706,24.493173,91.569236,79,79,Dealership,I nfernus,10000000,,0,1
411,2148.359130,-1153.060424,23.430162,90.268531,3,1,Dealership,Inf ernus,10000000,,0,0
411,2149.264160,-1133.971923,25.294258,86.302337,0,0,Concessionбrio ,Infernus,10000000,,0,0
411,2148.867187,-1148.218627,23.960084,90.436462,0,0,Dealership,Inf ernus,10000000,,0,0
411,2148.697998,-1157.165649,23.386655,90.464912,0,0,Dealership,Inf ernus,10000000,,0,0
527,503.956390,-1301.546142,17.117193,217.883621,39,39,Dealership, Cadrona,130000,,0,0
527,555.358215,-1272.315917,17.117038,1.089480,45,45,Dealership,Ca drona,130000,,0,0
492,293.413909,-1512.717651,24.325899,234.520706,81,27,Dealership, Greenwood,80000,,0,0
535,300.293395,-1490.822265,24.264499,233.683898,33,0,Dealership,S lamvan,130000,,0,0
521,303.546997,-1486.286743,24.452199,234.603805,95,1,Dealership,F CR-900,200000,,0,0
561,2118.929931,-1135.869140,25.092622,307.137084,90,96,Dealership, Stratum,550000,,0,0
535,290.725311,-1518.189819,24.389900,233.932006,67,67,Dealership, Slamvan,130000,,0,0
600,550.588745,-1272.681274,16.961109,0.573463,67,8,Dealership,Pic ador,130000,,0,0
415,2161.633789,-1162.958129,23.485666,269.882385,0,0,Dealership,Ch eetah,800000,,0,0
415,2161.842285,-1168.216796,23.485200,269.191406,3,3,Dealership,Ch eetah,800000,,0,0
415,2161.573730,-1173.019531,23.487800,275.272888,53,53,Dealership, Cheetah,800000,,0,0
451,2161.362792,-1178.229248,23.329999,268.333496,46,46,Dealership, Turismo,810000,,0,0
451,2161.250488,-1182.665405,23.330099,264.850097,14,1,Dealership,T urismo,810000,,0,0
451,2161.297119,-1187.682739,23.332000,267.851898,26,1,Dealership,T urismo,810000,,0,0
451,2161.284912,-1192.840454,23.334999,264.963897,3,3,Dealership,Tu rismo,810000,,0,0
534,2161.775634,-1197.289062,23.403329,272.605773,25,1,Dealership,R emington,150000,,0,0
534,2147.511474,-1189.921264,23.544626,270.125335,36,1,Concessionбr io,Remington,150000,,0,0

eu so consigo mudificar os Ids, nomes e preзo dos veiculos, mas nao posso acrescentar carros ao stand :S alguem me ajuda ? e no meu gamemode tem la a dizer isto

PHP код:
public IsAnOwnableCar(vehicleid)
{
    if(
vehicleid >= 184 && vehicleid <= 268) { return 1; }
    return 
0;
}
public 
IsAtDealership(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007))
        {
            return 
1;
        }
    }
    return 
0;

os carros a venda o primeiro tem o id 184 e o ultimo tem 268 e eu meto 269 quer dizer o carro 269 que criei ta pa venda e mesmo assim nao da

meti assim

PHP код:
if(vehicleid >= 184 && vehicleid <= 269) { return 1; } 
Alguem me ajuda ? agradeзo muito
Reply
#2

Em vez de pegar o id do veнculo vocк deveria pegar o modelo, usando GetVehicleModel

pawn Код:
if(GetVehicleModel(vehicleid) >= 184 && GetVehicleModel(vehicleid) <= 269) return 0;
Reply
#3

Quote:
Originally Posted by feliperch
Посмотреть сообщение
Em vez de pegar o id do veнculo vocк deveria pegar o modelo, usando GetVehicleModel

pawn Код:
if(GetVehicleModel(vehicleid) >= 184 && GetVehicleModel(vehicleid) <= 269) return 0;
A soluзгo nгo й essa.
O sistema que ele estб a usar deve ter outras formas de adicionar os veiculos que estгo а venda, tal como deve ser muito grande e ele nгo tenha encontrado o sitio.
Se puder postar aqui o sistema todo do stand, assim sim, poderemos ajudar.
Reply
#4

eu so encontrei isto, mas se vocкs baixarem o gta:rp e igual ao meu e tem o mesmo sistema de stand ґ...
Reply
#5

Modelo - 534
X - 2147.511474
Y - -1189.921264
Z - 23.544626
Angulo - 270.125335
Cor 1 - 36
Cor 2 - 1
Dono - Concessionбr io ou Dealership
Nome Modelo - Remington
Preзo - 150000
0 - Estado Dono (0 S/ Dono , 1 C/ Dono)
0 - Estado Aberto/Fechado (0 Aberto, 1 Fechado)
Reply
#6

sim e entao ? esta tudo bem, soque nao aparece a venda =S
Reply
#7

ja encontrei mais alguma coisa sobre o sistema do meu stand

PHP код:
public IsAnOwnableCar(vehicleid)
{
    if(
vehicleid >= 184 && vehicleid <= 268) { return 1; }
    return 
0;
}

public 
IsAtDealership(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007))
        {
            return 
1;
        }
    }
    return 
0;

PHP код:
    }
    
idx 184;
     while (
idx sizeof(CarInfo))
    {
        new 
coordsstring[256];
        
format(coordsstringsizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
        
CarInfo[idx][cModel],//
        
CarInfo[idx][cLocationx],//
        
CarInfo[idx][cLocationy],//
        
CarInfo[idx][cLocationz],//
        
CarInfo[idx][cAngle],//
        
CarInfo[idx][cColorOne],//
        
CarInfo[idx][cColorTwo],//
        
CarInfo[idx][cOwner],//
        
CarInfo[idx][cDescription],//
        
CarInfo[idx][cValue],//
        
CarInfo[idx][cLicense],//
        
CarInfo[idx][cOwned],//
        
CarInfo[idx][cLock]);
        if(
idx == 184)
        {
            
file2 fopen("cfg/cars.cfg"io_write);
        }
        else
        {
            
file2 fopen("cfg/cars.cfg"io_append);
        }
        
fwrite(file2coordsstring);
        
idx++;
        
fclose(file2);
    }
    return 
1;

aqui esta, alguem me ajuda ?
Reply
#8

Primeiro conte quantos veiculos vocк vai adicionar.
pawn Код:
new CarInfo[268][cInfo]; //Troque o 268 para 268+Veiculos que vocк adicionou
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 184 && vehicleid <= 268) //Troque o 268 para 268+Veiculos que vocк adicionou
    { return 1; }
    return 0;
}
Eu estou scriptando este gamemode . Jб fiz isto e deu serto.
@Edit:
184 й o Numero em que o id do ultimo veiculo criado antes de criar os veiculos para serem comprados.
268 й o Numero do id do ultimo veiculo б venda criado.
Reply
#9

Obrgiado !!!!!! es o rei tive tanto tempo a tentar saber como pooodia meter mais carros
:P amote xD
Reply
#10

nao da pa fazer o seguinte ? tipo eu ja tenho a biz e dentro da biz so pode usar o comando /comprarveiculo ID

e depois diz "Vocк comprou um veiculo, ele estб la fora." e quando o player sai da biz o veiculo ta la fora ? mas compativel com este sistema, ao fazer /comprarveiculo ele automativa mente vai para o scriptfils Cfgs/cars.cfgs

e tambem meter os preзos dos carros tipo o id 402 $10000 etc ? agradeзo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)