Trailer attaching
#3

PHP код:
CMD:trailer(playeridparams[])
{
    new 
vehicleid;
    
vehicleid GetPlayerVehicleID(playerid);
    if(
IsATruck(vehicleid))
    {
        new 
randtrailer randomsizeofTrailers ) );
        
AttachTrailerToVehicle(randtrailervehicleid);
        
SendClientMessage(playeridCOLOR_RED"INFO: Trailer attached");
        
printf("%d"randtrailer);
    }
    return 
1;
}
stock IsATruck(vehicleid)
{
    switch(
GetVehicleModel(vehicleid))
    {
        case 
435450584591: return 1;
    }
    return 
1;

Try this

Edit : Late, Thanks to the Anti-Spam System ^^.
Reply


Messages In This Thread
Trailer attaching - by Luis- - 25.08.2011, 18:02
Re: Trailer attaching - by [MWR]Blood - 25.08.2011, 18:06
Re: Trailer attaching - by =WoR=G4M3Ov3r - 25.08.2011, 18:07
Re: Trailer attaching - by Luis- - 25.08.2011, 18:14
Re: Trailer attaching - by [MWR]Blood - 25.08.2011, 18:15
Re: Trailer attaching - by =WoR=G4M3Ov3r - 25.08.2011, 18:17
Re: Trailer attaching - by Luis- - 25.08.2011, 18:25
Re: Trailer attaching - by [MWR]Blood - 25.08.2011, 18:26
Re: Trailer attaching - by Luis- - 25.08.2011, 18:27
Re: Trailer attaching - by =WoR=G4M3Ov3r - 25.08.2011, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)