AttachTrailerToVehicl
#8

pawn Код:
new TrailerId[6] = {
{1st trailer id},
{2nd trailer id},
{3th trailer id},
{4th trailer id},
{5th trailer id},
{6th trailer id}
};

//onplayerentercheckpoint
TogglePlayerControllable(playerid, false);
SetTimerEx("AttachOneTrailer",5000,false,"i",playerid);

public AttachOneTrailer(playerid)
{
    AttachTrailerToVehicle(TrailerId[Random(random(sizeof(TrailerId))], GetPlayerVehicleID(playerid));//will attach one of those trailers randomly
    TogglePlayerControllable(playerid, true);
    //SendClientMessage
    return 1;
}
like this?
Reply


Messages In This Thread
AttachTrailerToVehicl - by Azzeto - 06.10.2011, 12:01
Re: AttachTrailerToVehicl - by Pharrel - 06.10.2011, 12:09
Re: AttachTrailerToVehicl - by Azzeto - 06.10.2011, 12:14
Re: AttachTrailerToVehicl - by Pharrel - 06.10.2011, 12:21
Re: AttachTrailerToVehicl - by Azzeto - 06.10.2011, 12:24
Re: AttachTrailerToVehicl - by Pharrel - 06.10.2011, 12:31
Re: AttachTrailerToVehicl - by Azzeto - 06.10.2011, 12:33
Re: AttachTrailerToVehicl - by Pharrel - 06.10.2011, 12:43
Re: AttachTrailerToVehicl - by Azzeto - 06.10.2011, 12:45
Re: AttachTrailerToVehicl - by Pharrel - 06.10.2011, 12:46

Forum Jump:


Users browsing this thread: 6 Guest(s)