18.03.2009, 18:16
Hy iv made something for trucker job but im stuck on CreateVehicle
i dono how to create the trailer in the back of my Truck and in the same time to attach it
plz help
Code:
i dono how to create the trailer in the back of my Truck and in the same time to attach it
plz help
Code:
pawn Код:
if(strcmp(cmd,"/haul",true)==0)
{
new carid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pJob] != 16)
{
SendClientMessage(playerid,COLOR_GREY," You are not a Trucker !");
return 1;
}
if(PlayerToPoint(35.0, playerid,2199.0886,-2256.2117,13.5469))
{
if (IsATir(carid))
{
new rand = random(sizeof(checkpointr));
CreateVehicle(584, i'm stuck here
AttachTrailerToVehicle(carid, 584);
GivePlayerCash(playerid, -5000);
SetPlayerCheckpoint(playerid, checkpointr[rand][0], checkpointr[rand][1], checkpointr[rand][2], 8.0);
CP[playerid] = 23;
}
else
{
SendClientMessage(playerid,COLOR_GREY," You are not in a Truck !");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_GREY," You are not at the load point !");
return 1;
}
}
return 1;
}