Olб gostaria de uma ajuda com esses codigos de aluguel de veiculo pois quando tento alugar um veiculo o preзo dele fica em 'ZERO' gostaria de saber como colocar um preзo neles vou colocar o codigo abaixo.
Код:
//===============================|• VEICULOS DE ALUGUEL •|=======================================
AddStaticVehicle(560,558.3553,-1289.7278,16.9551,0.8050,51,51); // carro aluguel 1 [ 332 ]
AddStaticVehicle(560,554.5654,-1289.6489,16.9552,2.4649,51,51); // carro aluguel 2 [ 333 ]
AddStaticVehicle(560,550.9343,-1289.6908,16.9546,3.3999,51,51); // carro aluguel 3 [ 334 ]
AddStaticVehicle(506,546.8458,-1289.9054,16.9545,4.1478,51,51); // carro aluguel 4 [ 335 ]
AddStaticVehicle(506,542.8229,-1290.2216,16.9480,3.6802,51,51); // carro aluguel 5 [ 336 ]
AddStaticVehicle(506,538.1052,-1290.2968,16.9493,1.1534,51,51); // carro aluguel 6 [ 337 ]
AddStaticVehicle(559,533.5905,-1290.3926,16.9486,2.4711,51,51); // carro aluguel 7 [ 338 ]
AddStaticVehicle(559,528.9374,-1290.5078,16.9491,2.5434,51,51); // carro aluguel 8 [ 339 ]
AddStaticVehicle(559,524.9777,-1290.4878,16.9490,4.3869,51,51); // carro aluguel 9 [ 340 ]
AddStaticVehicle(475,520.7125,-1291.0891,16.9489,5.2022,51,51); // carro aluguel 10 [ 341 ]
AddStaticVehicle(475,552.0004,-1263.1455,16.9484,209.2874,51,51); // carro aluguel 11 [ 342 ]
AddStaticVehicle(475,548.2775,-1265.9437,16.9494,207.4516,51,51); // carro aluguel 12 [ 343 ]
AddStaticVehicle(451,544.0808,-1268.7469,16.9525,209.3285,51,51); // carro aluguel 13 [ 344 ]
AddStaticVehicle(451,540.1223,-1271.9517,16.9491,211.3782,51,51); // carro aluguel 14 [ 345 ]
AddStaticVehicle(581,567.0040,-1280.6033,16.8134,101.3406,51,51); // moto aluguel 1 [ 346 ]
AddStaticVehicle(581,567.4683,-1282.6602,16.8163,103.6175,51,51); // moto aluguel 2 [ 347 ]
AddStaticVehicle(522,567.9373,-1284.7318,16.8142,105.8900,51,51); // moto aluguel 3 [ 348 ]
AddStaticVehicle(522,568.4707,-1286.9088,16.8207,106.0463,51,51); // moto aluguel 4 [ 349 ]
AddStaticVehicle(521,569.0721,-1289.0919,16.8163,109.3813,51,51); // moto aluguel 5 [ 350 ]
AddStaticVehicle(521,569.4713,-1291.3688,16.8175,94.5475,51,51); // moto aluguel 6 [ 351 ]
pawn Код:
if(strcmp(cmd, "/alugarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Veh = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Estб alugando um carro!.", sendername);
DetectorProx(20.0,playerid,string,ROXO);
if(Aluguel(Veh))
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(Aluguel(Veh))
{
if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~Cuidado Com o carro", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoneyEx(playerid) < SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem dinheiro suficiente para aluga este carro !");
return 1;
}
GivePlayerMoneyEx(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
}
if(GetPlayerVehicleID(playerid) >= 165 && GetPlayerVehicleID(playerid) <= 169)
{
if(PlayerInfo[playerid][pPbiskey] == 1)
{
GameTextForPlayer(playerid, "~w~Cuidado Com o carro", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoneyEx(playerid) < SBizzInfo[1][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem dinheiro suficiente para aluga este carro !");
return 1;
}
GivePlayerMoneyEx(playerid,-SBizzInfo[1][sbEntranceCost]);
SBizzInfo[1][sbTill] += SBizzInfo[1][sbEntranceCost];
ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
}
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~ Alugado, para trancar digite ~y~/trancar ~n~ ~p~ cuide bem do nosso carro",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}
esse sistema й oque uso no meu Gm sу que o valor do aluguel fica sempre em 0 =/