Posts: 467
Threads: 52
Joined: Sep 2012
Reputation:
0
O preзo do aluguel nгo estб nessa parte.
Posts: 37
Threads: 8
Joined: May 2014
Reputation:
0
if(strcmp(cmd, "/alugarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new newcar = GetPlayerVehicleID(playerid);
if(IsAAlugCar(newcar))
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if (GetGranaVinny(playerid) < SBizzInfo[1][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem esse dinheiro !");
return 1;
}
if(HireCar[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк tem que desalugar o outro veiculo !");
RemovePlayerFromVehicleEx(playerid);
return 1;
}
for(new i=0; i<MaiorID; i++)
{
if(HireCar[i] == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Alguem jб alugou esse veiculo !");
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicleEx(playerid);
return 1;
}
}
GranaVinny(playerid,-SBizzInfo[1][sbEntranceCost]);
SBizzInfo[1][sbTill] += SBizzInfo[1][sbEntranceCost];
ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]);
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Voce pode ~r~/desalugarcarro~n~~g~ou /trancar ~w~ para trancar o carro.",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
return 1;
}
else if(IsAVipCar(newcar))
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if (GetGranaVinny (playerid) < SBizzInfo[23][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem esse dinheiro !");
return 1;
}
if(HireCar[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк tem que desalugar o outro veiculo !");
return 1;
}
Posts: 467
Threads: 52
Joined: Sep 2012
Reputation:
0
Busque mais cуdigos que tem SBizzInfo[1][sbEntranceCost] e dentro dos cуdigos procure pelo valor 99999
Posts: 37
Threads: 8
Joined: May 2014
Reputation:
0
Ever Sh o pior e que nгo tem
Posts: 230
Threads: 67
Joined: Oct 2013
Reputation:
0
so procurar dentro da pasta scriptfiles que ta la dentro
supostamente scriptfiles > configuraзхes sу procurar lб que vocк acha
Posts: 174
Threads: 18
Joined: Jan 2014
Reputation:
0
Tem q ter mano,vc q n ta sabendo como achar,procure nas scriptfiles/config e veja se tem a pasta que defini esse valor