[Ajuda] Bug em alugar e comprar carros - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Bug em alugar e comprar carros (
/showthread.php?tid=286248)
[Ajuda] Bug em alugar e comprar carros -
loganout - 27.09.2011
Pessoal estou com um bug meio desanimador =)
Seguinte, na hora que vocк por exemplo, sobe em uma moto lhe й mostrado a msg de quanto custa o veiculo, e para compra-lo ou aluga-lo vc necessita digitar o cmd
"/alugarcarro" ou
"/veiculo comprar". Atй ai perfeito, mas se vc sobe no veiculo e coloca /gps e logo depois fecha o gps o veiculo fica inteiramente gratis, pode sair sem pagar nadica de nada!!!
Vocкs poderiam me dar uma soluзгo para isso? Obrigado!
Re: [Ajuda] Bug em alugar e comprar carros -
[NWD]Jim._.Carrey - 27.09.2011
Se o seu GPS for menu ele usa a funзгo TogglePlayerControllable quer dizer que quando vocк sai de algum menu ele seta TogglePlayerControllable(playerid, 1); ou seja torna o player controlavйl e assim fazendo acontecer esse bug, usa a funзгo para desligar o motor do veнculo em vez de TogglePlayerControllable
Aqui:
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
// Ligado
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
//Desligado
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF,lights, alarm, doors, bonnet, boot, objective);
Re: [Ajuda] Bug em alugar e comprar carros -
loganout - 27.09.2011
desculpa abusar, mas onde coloco isso ?