[Ajuda] Checar se possui reboque - 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] Checar se possui reboque (
/showthread.php?tid=598128)
Checar se possui reboque -
Lutherdeck - 09.01.2016
como posso saber se o caminhгo do player esta com reboque e qual o id dele ?
tentei:
Код:
GetVehicleTrailer(GetPlayerVehicleID(playerid))
Код:
GetVehicleTrailer(playerid)
nenhum deu
Re: Checar se possui reboque -
Lуs - 09.01.2016
PHP код:
stock GetVehicleTrailerModel(vehicleid) {
new trailerid = GetVehicleTrailer(vehicleid);
return GetVehicleModel(trailerid);
}
stock GetVehicleTrailerID(vehicleid) {
new trailerid = GetVehicleTrailer(vehicleid);
return GetPlayerVehicleID(trailerid);
}