[!] Adding objects to the server automatic vehicles.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [!] Adding objects to the server automatic vehicles.. (
/showthread.php?tid=601745)
[!] Help AttachObjectToVehicle -
ProRakNet - 25.02.2016
I add AttachObjectToVehicle objects for server all infernus(411) vehicles automatic how do i add ?
Please help..
Re: [!] Adding objects to the server automatic vehicles.. -
Virtual1ty - 25.02.2016
Either under
OnVehicleSpawn() when the vehicles respawn, or instantly under a command or w/e:
PHP код:
// Put your values in place of objid, off_x/y/z, rot_x/y/z
for (new v = 1; v < MAX_VEHICLES; v++)
{
if (GetVehicleModel(v) != 411) continue;
AttachObjectToVehicle(objid, v, off_x, off_y, off_z, rot_x, rot_y, rot_z);
}
Re: [!] Adding objects to the server automatic vehicles.. -
ProRakNet - 25.02.2016
Very thanks man.