Im stuck on something
#1

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:

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;
  }
Reply


Messages In This Thread
Im stuck on something - by Im_BanK - 18.03.2009, 18:16
Re: Im stuck on something - by MenaceX^ - 18.03.2009, 18:30
Re: Im stuck on something - by Im_BanK - 18.03.2009, 19:08
Re: Im stuck on something - by MenaceX^ - 18.03.2009, 19:35
Re: Im stuck on something - by Weirdosport - 18.03.2009, 19:54
Re: Im stuck on something - by Im_BanK - 18.03.2009, 20:05
Re: Im stuck on something - by MenaceX^ - 18.03.2009, 20:14
Re: Im stuck on something - by LarzI - 18.03.2009, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)