Mechanic car wont hook cars
#4

See here: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE) //Or whatever key, look up the full list @ wiki
    {
        AttachTrailerToVehicle(/*trailerid*/, GetPlayerVehicleID(playerid));
    }
}
You'll need a snippet to find the closest vehicle, but I'm mad tired n im going to sleep
Reply


Messages In This Thread
Mechanic car wont hook cars - by vent - 08.01.2012, 17:37
Re: Mechanic car wont hook cars - by Rob_Maate - 08.01.2012, 17:41
Re: Mechanic car wont hook cars - by vent - 08.01.2012, 17:43
Re: Mechanic car wont hook cars - by Rob_Maate - 08.01.2012, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)