Need Help With Editing PPC_Trucking
#1

I Busy With Editing PPC_Trucking And I Want to add new truck depots with trucks and more.

I Want to add Trucks On My Gamemode But When I Past It Under On_Gamemodinit The Trucks are not fueled

pleas anywone can say what i need to chang on this codes and where i need to add this?

Код:
AddStaticVehicleEx(560,2759.30004883,2708.00000000,10.69999981,90.00000000,-1,-1,15); //Sultan
AddStaticVehicleEx(445,2759.39990234,2698.10009766,10.89999962,270.00000000,-1,-1,15); //Admiral
AddStaticVehicleEx(529,2759.19995117,2690.89990234,10.69999981,90.00000000,-1,-1,15); //Willard
AddStaticVehicleEx(515,2810.60009766,2709.89990234,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2704.50000000,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2699.10009766,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2693.69995117,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2688.30004883,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2682.89990234,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2677.50000000,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(515,2810.60009766,2672.10009766,12.10000038,90.00000000,-1,-1,15); //Roadtrain
AddStaticVehicleEx(578,2752.30004883,2672.39990234,11.69999981,0.00000000,-1,-1,15); //DFT-30
AddStaticVehicleEx(578,2757.00000000,2672.39990234,11.69999981,0.00000000,-1,-1,15); //DFT-30
AddStaticVehicleEx(455,2765.89990234,2671.69995117,11.50000000,0.00000000,-1,-1,15); //Flatbed
AddStaticVehicleEx(455,2761.19995117,2671.69995117,11.50000000,0.00000000,-1,-1,15); //Flatbed
Reply
#2

under OnGameModeInit
and i don't know that game mode, so just search for the word depot, and you will find something
Reply
#3

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
under OnGameModeInit
and i don't know that game mode, so just search for the word depot, and you will find something
Nop I Do It In PPC_GamemodeInit But Not Work Not fuelled
Reply
#4

Anywone Can Help pleas
Reply
#5

You're using "AddStaticVehicleEx" to create the vehicles.
There are LOADS of lines which use the function "Vehicle_AddStatic" in that file.

This is a function that can be found in "PPC_Common.inc" and it responsible for several tasks:
- create the vehicle
- set the fuel for that vehicle to maximum
- store data about the vehicle in AVehicleData
- protect this vehicle from being deleted by the command /cleanupcars
Reply
#6

AmigaBlizzard Sending PM...
Reply
#7

Just replace AddStaticVehicleEx by Vehicle_AddStatic.
That's all.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)