Random trailer
#3

Still nothing happens

pawn Код:
#include <a_samp>
#include <zcmd>
#define COLOR_RED 0xff0000a7

new Trailers[][] =
{{435},
{450},
{591},
{584}};

CMD:trailer(playerid, params[])
{
    new vehicleid;
   
    vehicleid = GetPlayerVehicleID(playerid);
    if(IsATruck(vehicleid))
    {
        new randtrailer = random( sizeof( Trailers ) );
       
        AttachTrailerToVehicle(CreateVehicle(Trailers[randtrailer][0], 0.0, 0.0, 0.0, 0.0, -1, -1, 60) , vehicleid);
    }
    return 1;
}

stock IsATruck(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 403, 514, 515: return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Random trailer - by kalanerik99 - 28.03.2013, 18:51
Re: Random trailer - by Misiur - 28.03.2013, 18:54
Re: Random trailer - by kalanerik99 - 28.03.2013, 19:18
Re: Random trailer - by kalanerik99 - 29.03.2013, 05:08
Re: Random trailer - by Vince - 29.03.2013, 06:03
Re: Random trailer - by kalanerik99 - 29.03.2013, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)