PPC_Trucking
#1

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 ?
Reply
#2

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.
Reply
#3

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() ??
Reply
#4

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

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.
Reply
#6

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

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
Reply
#8

Infernus:

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

how i can remove fuel system ?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)