12.06.2015, 13:28
Okay, so I make command
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
where is trailer create!
Help me Guys!
PHP код:
CMD:work(playerid,params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_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(playerid, 50.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;
}
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
Help me Guys!