SA-MP Forums Archive
[Ajuda] ajuda a fazer esse comando - 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] ajuda a fazer esse comando (/showthread.php?tid=632700)



ajuda a fazer esse comando - felipegomez - 17.04.2017

incluindo todos os carros, se o carro tiver trancado quando a pessoa executar o comando /roubarcarro destrancar o carro??

Код HTML:
CMD:roubarcarro(playerid,params[]){
new motor,luzes,alarme,portas,capo,boot,objetivo;
GetVehicleParamsEx(veiculostrancados[GetPlayerVehicleID(playerid)],motor,luzes,alarme,portas,capo,boot,objetivo);
if(portas==VEHICLE_PARAMS_ON){
SetVehicleParamsEx(veiculostrancados[GetPlayerVehicleID(playerid)],false,luzes,alarme,VEHICLE_PARAMS_OFF,capo,boot,objetivo);
}
return 1;
}