SA-MP Forums Archive
Need Help With Editing 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: Need Help With Editing PPC_Trucking (/showthread.php?tid=362719)



Need Help With Editing PPC_Trucking - Mustang[GTS] - 25.07.2012

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



Re: Need Help With Editing PPC_Trucking - Jstylezzz - 25.07.2012

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


Re: Need Help With Editing PPC_Trucking - Mustang[GTS] - 25.07.2012

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


Re: Need Help With Editing PPC_Trucking - Mustang[GTS] - 26.07.2012

Anywone Can Help pleas


Re: Need Help With Editing PPC_Trucking - AmigaBlizzard - 26.07.2012

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


Re: Need Help With Editing PPC_Trucking - Mustang[GTS] - 27.07.2012

AmigaBlizzard Sending PM...


Re: Need Help With Editing PPC_Trucking - AmigaBlizzard - 27.07.2012

Just replace AddStaticVehicleEx by Vehicle_AddStatic.
That's all.