Trouble attaching trailers - 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: Trouble attaching trailers (
/showthread.php?tid=531660)
Trouble attaching trailers -
NikiFor - 13.08.2014
I have this code and i want to attach the trailer to the another one... someone can help me? sorry my english...
(See the image to understand whats is happening)
Код:
CMD:train(playerid,params[])
{
new Float:vX, Float:vY, Float:vZ;
GetPlayerPos(playerid, vX, vY, vZ);
new veh = CreateVehicle(515, vX, vY, vZ, 0, 0, 1, -1), trail = CreateVehicle(591, vX, vY, vZ, 0, 0, 1, -1);
PutPlayerInVehicle(playerid, veh, 0);
AttachTrailerToVehicle(trail, veh);
AttachTrailerToVehicle(CreateVehicle(435, vX, vY, vZ, 0, 0, 1, -1), trail);
return 1;
}
Re: Trouble attaching trailers -
GGW - 14.08.2014
Here you Go the New CMD
PHP код:
CMD:train(playerid,params[])
{
new Float:vX, Float:vY, Float:vZ;
GetPlayerPos(playerid, vX, vY, vZ);
new veh = CreateVehicle(515, vX, vY, vZ, 0, 0, 1, -1), trail = CreateVehicle(591, vX, vY, vZ, 0, 0, 1, -1);
PutPlayerInVehicle(playerid, veh, 0);
AttachTrailerToVehicle(trail, veh);
return 1;
}
Re: Trouble attaching trailers -
NikiFor - 14.08.2014
Quote:
Originally Posted by GGW
Here you Go the New CMD
PHP код:
CMD:train(playerid,params[])
{
new Float:vX, Float:vY, Float:vZ;
GetPlayerPos(playerid, vX, vY, vZ);
new veh = CreateVehicle(515, vX, vY, vZ, 0, 0, 1, -1), trail = CreateVehicle(591, vX, vY, vZ, 0, 0, 1, -1);
PutPlayerInVehicle(playerid, veh, 0);
AttachTrailerToVehicle(trail, veh);
return 1;
}
|
Is not this :/... In the spanish forum they solved the problem...
https://sampforum.blast.hk/showthread.php?tid=531664