Trailer Attach to Truck
#1

Okay, so I make command
PHP код:
CMD:work(playerid,params[])
{
    if(
gPlayerLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"Trebuie sa te loghezi mai intai.");
    new 
idcar GetPlayerVehicleID(playerid);
    if(
PlayerInfo[playerid][pJob] != 14) return SCM(playerid,COLOR_WHITE,"{FFF8C6}You are not a Trucker.");
    if(!
IsATruck(idcar) && GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SCM(playerid,COLOR_WHITE,"{FFF8C6}This vehicle does not truck or you are not driver.");
    if(!
IsPlayerInRangeOfPoint(playerid50.0, -63.6036,-1128.5824,1.0781)) return SCM(playerid,COLOR_WHITE,"{FFF8C6}You are not the place where you can get products.");
    
//new Trucker = CreateVehicle(515,-77.2527,-1128.5070,2.0876,68.5459,3,77,9000); //  Trucker
    
new TrailerID CreateVehicle(450,-68.6366,-1132.4463,2.0863,63.8751,3,77,9000); // Trucker si remorca
    //PutPlayerInVehicle(playerid,Trucker,0);
    //ShowPlayerDialog(playerid, DIALOG_TRANSPORT, DIALOG_STYLE_LIST, "Product:", "Legal Products\nIllegal Products", "Select", "Close");
    //AttachTrailerToVehicle(TrailerID,GetPlayerVehicleID(playerid));
    
new Float:pX,Float:pY,Float:pZ;
    
GetPlayerPos(playerid,pX,pY,pZ);
    new 
Float:vX,Float:vY,Float:vZ;
    
GetVehiclePos(idcar,vX,vY,vZ);
    
AttachTrailerToVehicle(TrailerID,idcar);
    
    return 
1;

I did this command when writing / work wherever you are attach the trailer to truck

BUT! Not work, i don't know why

He give me the trailer to this Coordonates
PHP код:
new TrailerID CreateVehicle(450,-68.6366,-1132.4463,2.0863,63.8751,3,77,9000); // Trucker si remorca 
where is trailer create!
Help me Guys!
Reply


Messages In This Thread
Trailer Attach to Truck - by Sn4ke2 - 12.06.2015, 13:28
Re: Trailer Attach to Truck - by rappy93 - 12.06.2015, 13:31
Re: Trailer Attach to Truck - by Sn4ke2 - 12.06.2015, 13:36
Re: Trailer Attach to Truck - by rappy93 - 12.06.2015, 13:39
Re: Trailer Attach to Truck - by Sn4ke2 - 12.06.2015, 13:42
Re: Trailer Attach to Truck - by rappy93 - 12.06.2015, 13:49
Re: Trailer Attach to Truck - by Sn4ke2 - 12.06.2015, 14:00
Re: Trailer Attach to Truck - by rappy93 - 12.06.2015, 14:06
Re: Trailer Attach to Truck - by Sn4ke2 - 12.06.2015, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)