SA-MP Forums Archive
PPC_Trucking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PPC_Trucking (/showthread.php?tid=396747)



PPC_Trucking - Baumann - 01.12.2012

Anyone can help me , with PPCtrucking ? Look i want add vehicles but in inc file i see this
LastVehicleID = Vehicle_AddStatic(VehicleDFT30, -512.0, 2605.0, 54.0, 90.0, random(126), random(126), 600); // DFT-30


how i can add infernus ? where i get the infernus name , and also its possible to make this command lastvehicle to AddStaticVehicle(487,-5.0659,2546.7300,16.5450,187.1077,98,113); // maverik i cant add it on gm , im adding atm it to PPC_gamemode.inc how i can add like this AddStaticVehicle(487,-5.0659,2546.7300,16.5450,187.1077,98,113); // maverik to gm ?


Re: PPC_Trucking - DerickClark - 01.12.2012

Convert:http://convertffs.com/
1.Get mta
2.copy it the code
3.Go to Convertffs.com
4:go to options
5:Change Add to SA-MP script To Add To ADD To SA-MP script Gamemode
6:go to your pawn
7: put the code to public OnGameModeInit()
8:Your Done.


Re: PPC_Trucking - Baumann - 01.12.2012

1. i go to http://convertffs.com/
2. i choose on options add samp gamemode
3. i copy ppc_ongamemode.inc text
4. i paste it to convertffs.com
5. copyng convertffs.com generated text , pasteing it to ppctrucking gamemode and add this line include ,or defineOnGameModeInit() ??


Re: PPC_Trucking - DerickClark - 02.12.2012

No.go to your PPC_Trucking add it on OnGameModeInit()


Re: PPC_Trucking - Mr.Anonymous - 02.12.2012

You can add vehicles using the LastVehicleID. Suppose you want to add a vehicle, just follow this:

pawn Код:
LastVehicleID = Vehicle_AddStatic(VehicleID , X , Y , Z , random(126), random(126), 300);
Where:
VehicleID is the vehicle ID you want to add.
X is the x-coordinates.
Y is the y-coordinates.
Z is the z-coordinates.
Forget about the random(126) stuff.

The reason why we have to use LastVehicleID in PPC Trucking is that it adds fuel to vehicle while AddStaticVehicle doesn't.


Re: PPC_Trucking - Baumann - 02.12.2012

how i add infernus ? AddStaticVehicle(487,-5.0659,2546.7300,16.5450,187.1077,98,113); //


Re: PPC_Trucking - Baumann - 02.12.2012

wtf , now i added and infernus is on smap , but i cant choose anymore work classes, and i got 2 warnings C:\Documents and Settings\S0n\Desktop\pawno\include\PPC_GameModeIni t.inc(546) : warning 202: number of arguments does not match definition
C:\Documents and Settings\S0n\Desktop\pawno\include\PPC_GameModeIni t.inc(546) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.





// This function adds all vehicles needed for roadworker class
GameModeInit_RoadWorker()
{
// Quarry top
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1895.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1900.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1905.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1910.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1915.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityVan, -1920.0, -1705.0, 21.5, 180.0, random(126), random(126), 300); // Utility Van
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1895.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1900.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1905.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1910.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1915.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleUtilityTrailer, -1920.0, -1700.0, 21.5, 180.0, random(126), random(126), 300); // Utility Trailer
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1866.5, -1731.75, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1870.5, -1734.25, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1874.5, -1736.75, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1878.5, -1739.25, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1882.5, -1741.75, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(VehicleTowTruck, -1886.5, -1744.25, 21.7, 30.0, random(126), random(126), 300); // Towtruck
LastVehicleID = Vehicle_AddStatic(411 ,-5.0659,2546.7300 , random(126), random(126), 300); // infernus


Re: PPC_Trucking - Mr.Anonymous - 02.12.2012

Infernus:

LastVehicleID = Vehicle_AddStatic(411, -5.0659 ,2546.7300 ,16.5450 , random(126), random(126), 300);


Re: PPC_Trucking - Baumann - 02.12.2012

how i can remove fuel system ?


Re: PPC_Trucking - Mr.Anonymous - 02.12.2012

That's a long process. Find everything related to fuel and remove that.