17.06.2014, 21:57
Eu refiz o sistema de carros do GameMode...Consegui colocar todos os carros de volta, exceto os carros dos alugueis, e onde esta:
Define os carros que sгo dos alugueis, ate ai beleza mas nгo estou conseguindo arrumar uma forma de definir eles da nova forma que organizei os carros no GM sendo que os carros dos alugueis depois de reorganizados ficaram assim:
pawn Код:
if((newcar >= 305 && newcar <= 324) || (newcar >= 457 && newcar <= 467) || (newcar >= 325 && newcar <= 352) || (newcar >= 559 && newcar <= 562)
|| (newcar >= 379 && newcar <= 391) || (newcar >= 457 && newcar <= 467) || (newcar >= 459 && newcar <= 464) || (newcar >= 417 && newcar <= 422)
|| (newcar >= 375 && newcar <= 376))
{
if (HireCar[playerid] != newcar)
{
new Aluguelbox[256];
format(Aluguelbox, sizeof(Aluguelbox),"Este Veiculo pode ser alugado Preзo:R$%d\nDeseja Aluga-lo ?", SBizzInfo[1][sbEntranceCost]);
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid, DIALOG_ALUGAR, DIALOG_STYLE_MSGBOX, "Aluguel de Veiculos", Aluguelbox, "Sim", "Nгo");
}
}
pawn Код:
new ALUGUEL[48];
//|========================================[CARROS VEICULOS ALUGUEL]==================================|
ALUGUEL[0] = AddStaticVehicleEx(560,558.3553,-1289.7278,16.9551,0.8050,103,103,99999*RESPAWN_TIME);
ALUGUEL[1] = AddStaticVehicleEx(560,554.5654,-1289.6489,16.9552,2.4649,103,103,99999*RESPAWN_TIME);
ALUGUEL[2] = AddStaticVehicleEx(560,550.9343,-1289.6908,16.9546,3.3999,103,103,99999*RESPAWN_TIME);
ALUGUEL[3] = AddStaticVehicleEx(506,546.8458,-1289.9054,16.9545,4.1478,103,103,99999*RESPAWN_TIME);
ALUGUEL[4] = AddStaticVehicleEx(506,542.8229,-1290.2216,16.9480,3.6802,103,103,99999*RESPAWN_TIME);
ALUGUEL[5] = AddStaticVehicleEx(506,538.1052,-1290.2968,16.9493,1.1534,103,103,99999*RESPAWN_TIME);
ALUGUEL[6] = AddStaticVehicleEx(559,533.5905,-1290.3926,16.9486,2.4711,103,103,99999*RESPAWN_TIME);
ALUGUEL[7] = AddStaticVehicleEx(559,528.9374,-1290.5078,16.9491,2.5434,103,103,99999*RESPAWN_TIME);
ALUGUEL[8] = AddStaticVehicleEx(559,524.9777,-1290.4878,16.9490,4.3869,103,103,99999*RESPAWN_TIME);
ALUGUEL[9] = AddStaticVehicleEx(480,520.7125,-1291.0891,16.9489,5.2022,103,103,99999*RESPAWN_TIME);
ALUGUEL[10] = AddStaticVehicleEx(480,552.0004,-1263.1455,16.9484,209.2874,103,103,99999*RESPAWN_TIME);
ALUGUEL[11] = AddStaticVehicleEx(480,548.2775,-1265.9437,16.9494,207.4516,103,103,99999*RESPAWN_TIME);
ALUGUEL[12] = AddStaticVehicleEx(451,544.0808,-1268.7469,16.9525,209.3285,103,103,99999*RESPAWN_TIME);
ALUGUEL[13] = AddStaticVehicleEx(451,540.1223,-1271.9517,16.9491,211.3782,103,103,99999*RESPAWN_TIME);
ALUGUEL[14] = AddStaticVehicleEx(581,567.0040,-1280.6033,16.8134,101.3406,103,103,99999*RESPAWN_TIME);
ALUGUEL[15] = AddStaticVehicleEx(581,567.1725,-1282.8904,16.8150,98.1773,103,103,99999*RESPAWN_TIME);
ALUGUEL[16] = AddStaticVehicleEx(581,567.9107,-1285.1788,16.8099,104.7714,103,103,99999*RESPAWN_TIME);
ALUGUEL[17] = AddStaticVehicleEx(581,568.4707,-1286.9088,16.8207,106.0463,103,103,99999*RESPAWN_TIME);
ALUGUEL[18] = AddStaticVehicleEx(521,569.0721,-1289.0919,16.8163,109.3813,103,103,99999*RESPAWN_TIME);
ALUGUEL[19] = AddStaticVehicleEx(521,569.4713,-1291.3688,16.8175,94.5475,103,103,99999*RESPAWN_TIME);
ALUGUEL[20] = AddStaticVehicleEx(560,2148.0103,-1203.5555,23.6148,270.2270,103,103,99999*RESPAWN_TIME);
ALUGUEL[21] = AddStaticVehicleEx(560,2147.9868,-1199.1451,23.6263,270.2075,103,103,99999*RESPAWN_TIME);
ALUGUEL[22] = AddStaticVehicleEx(560,2147.9705,-1194.6024,23.5921,270.2072,103,103,99999*RESPAWN_TIME);
ALUGUEL[23] = AddStaticVehicleEx(560,2147.9534,-1189.8275,23.6153,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[24] = AddStaticVehicleEx(506,2147.9351,-1185.1653,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[25] = AddStaticVehicleEx(506,2147.9175,-1180.5959,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[26] = AddStaticVehicleEx(506,2147.8982,-1175.7385,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[27] = AddStaticVehicleEx(559,2147.8792,-1170.7815,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[28] = AddStaticVehicleEx(559,2147.8623,-1166.5084,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[29] = AddStaticVehicleEx(480,2147.8442,-1161.8684,23.6157,270.2242,103,103,99999*RESPAWN_TIME);
ALUGUEL[30] = AddStaticVehicleEx(480,2147.8279,-1157.7185,23.6250,270.2243,103,103,99999*RESPAWN_TIME);
ALUGUEL[31] = AddStaticVehicleEx(451,2147.8103,-1153.2000,23.6530,270.2248,103,103,99999*RESPAWN_TIME);
ALUGUEL[32] = AddStaticVehicleEx(451,2147.7925,-1148.4026,24.1996,269.9953,103,103,99999*RESPAWN_TIME);
ALUGUEL[33] = AddStaticVehicleEx(562,2147.7927,-1143.9299,24.6300,269.9059,103,103,99999*RESPAWN_TIME);
ALUGUEL[34] = AddStaticVehicleEx(562,2147.8035,-1138.5513,25.2669,269.9054,103,103,99999*RESPAWN_TIME);
ALUGUEL[35] = AddStaticVehicleEx(562,2148.4338,-1133.9785,25.3300,267.5980,103,103,99999*RESPAWN_TIME);
ALUGUEL[36] = AddStaticVehicleEx(581,2162.7617,-1143.8843,24.4031,94.8846,103,103,99999*RESPAWN_TIME);
ALUGUEL[37] = AddStaticVehicleEx(581,2163.1655,-1148.4584,23.9399,94.9034,103,103,99999*RESPAWN_TIME);
ALUGUEL[38] = AddStaticVehicleEx(581,2162.3552,-1153.0013,23.4654,95.1561,103,103,99999*RESPAWN_TIME);
ALUGUEL[39] = AddStaticVehicleEx(581,2162.4158,-1157.6852,23.4134,87.8344,103,103,99999*RESPAWN_TIME);
ALUGUEL[40] = AddStaticVehicleEx(463,2162.2075,-1163.1984,23.3819,87.8398,103,103,99999*RESPAWN_TIME);
ALUGUEL[41] = AddStaticVehicleEx(463,2162.0244,-1168.0548,23.3806,87.8399,103,103,99999*RESPAWN_TIME);
ALUGUEL[42] = AddStaticVehicleEx(463,2161.8486,-1172.7130,23.3793,87.8401,103,103,99999*RESPAWN_TIME);
ALUGUEL[43] = AddStaticVehicleEx(522,2161.6694,-1177.4738,23.3791,87.8403,103,103,99999*RESPAWN_TIME);
ALUGUEL[44] = AddStaticVehicleEx(522,2161.4736,-1182.6678,23.3799,87.8402,103,103,99999*RESPAWN_TIME);
ALUGUEL[45] = AddStaticVehicleEx(581,2161.2922,-1187.4727,23.3810,87.8400,103,103,99999*RESPAWN_TIME);
ALUGUEL[46] = AddStaticVehicleEx(468,2161.1135,-1192.2057,23.3822,87.8398,103,103,99999*RESPAWN_TIME);
ALUGUEL[47] = AddStaticVehicleEx(468,2161.8564,-1196.8351,23.4496,87.4995,103,103,99999*RESPAWN_TIME);