21.06.2011, 11:05
Add in PPC_Defines.inc location of your depo,
Don't forgot about "," after {-1575.0, -2724.0, 49.0, 146.0}
(Shady Creek)
next, in PPC_PlayerCommands.inc add to command /rescue
Add after "Shady Creek Depot" \r\nYourDepotName
So, it's looks that:
If you want Auto-Spawn to your location after class select you need open PPC_Dialogs.inc and change it:
Add:
So, it looks that (Copy from Trucking Forever)
Recompile PPC_Trucking.pwn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And my question, How to add Speedometer in command /spec
Code:
new ASpawnLocationsTrucker[][TSpawnLocation] = { {-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot {-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot {1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot {-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot {1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot {-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot {332.0, 900.0, 25.0, 205.0}, // Quarry Top {-1575.0, -2724.0, 49.0, 146.0}, // Shady Creek Depot {2359.98, 549.67, 4.86, 0.0} //Your Depot Location };
(Shady Creek)
next, in PPC_PlayerCommands.inc add to command /rescue
Code:
case ClassTruckDriver: // Ask where the trucker player wants to respawn ShowPlayerDialog(playerid, DialogRescue, DIALOG_STYLE_LIST, "{000800}Choose trucker spawn point:", "Fallen Tree Depot\r\nFlint Trucking Depot\r\nLVA Freight Depot\r\nDoherty Depot\r\nEl Corona Depot\r\nLas Payasdas Depot\r\nQuarry Top\r\nShady Creek Depot", "Spawn", "Cancel");
So, it's looks that:
Code:
Shady Creek Depot\r\nYourDepotName",
Code:
Dialog_Rescue(playerid, response, listitem) { // Just close the dialog if the player clicked "Cancel" if(!response) return 1; // Check the class of the player switch (APlayerData[playerid][PlayerClass]) { case ClassTruckDriver: { // Set the coordinates based on the selection in the list switch (listitem) { case 0: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0); case 1: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -74.7, -1137.5, 4.5, 0.0, 0, 0, 0, 0, 0, 0); case 2: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1457.0, 975.5, 11.0, 0.0, 0, 0, 0, 0, 0, 0); case 3: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2136.0, -247.5, 36.5, 270.0, 0, 0, 0, 0, 0, 0); case 4: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1766.5, -2040.7, 14.0, 270.0, 0, 0, 0, 0, 0, 0); case 5: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -546.0, 2594.0, 54.0, 270.0, 0, 0, 0, 0, 0, 0); case 6: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 332.0, 900.0, 25.0, 205.0, 0, 0, 0, 0, 0, 0); case 7: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1575.0, -2724.0, 49.0, 146.0, 0, 0, 0, 0, 0, 0); }
Code:
case 8: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), XXXX.XX, YYYY.YY, ZZZZ.ZZ, 0.0, 0, 0, 0, 0, 0, 0); }
Code:
Dialog_Rescue(playerid, response, listitem) { // Just close the dialog if the player clicked "Cancel" if(!response) return 1; // Check the class of the player switch (APlayerData[playerid][PlayerClass]) { case ClassTruckDriver: { // Set the coordinates based on the selection in the list switch (listitem) { case 0: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0); case 1: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -74.7, -1137.5, 4.5, 0.0, 0, 0, 0, 0, 0, 0); case 2: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1457.0, 975.5, 11.0, 0.0, 0, 0, 0, 0, 0, 0); case 3: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -2136.0, -247.5, 36.5, 270.0, 0, 0, 0, 0, 0, 0); case 4: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 1766.5, -2040.7, 14.0, 270.0, 0, 0, 0, 0, 0, 0); case 5: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -546.0, 2594.0, 54.0, 270.0, 0, 0, 0, 0, 0, 0); case 6: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 332.0, 900.0, 25.0, 205.0, 0, 0, 0, 0, 0, 0); case 7: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -1575.0, -2724.0, 49.0, 146.0, 0, 0, 0, 0, 0, 0); case 8: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), 2359.98, 549.67, 4.86, 0.0, 0, 0, 0, 0, 0, 0); } }
Recompile PPC_Trucking.pwn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And my question, How to add Speedometer in command /spec