Re : My own trucking server (still in development) -
Ligeti Ferenc - 20.06.2011
How can I add new Trucking depo ? in /rescue ?
Re: Re : My own trucking server (still in development) -
Seba. - 21.06.2011
Quote:
Originally Posted by Ligeti Ferenc
How can I add new Trucking depo ? in /rescue ?
|
Add in PPC_Defines.inc location of your depo,
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
};
Don't forgot about "," after {-1575.0, -2724.0, 49.0, 146.0}
(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");
Add after "Shady Creek Depot" \r\nYourDepotName
So, it's looks that:
Code:
Shady Creek Depot\r\nYourDepotName",
If you want Auto-Spawn to your location after class select you need open PPC_Dialogs.inc and change it:
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);
}
Add:
Code:
case 8: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), XXXX.XX, YYYY.YY, ZZZZ.ZZ, 0.0, 0, 0, 0, 0, 0, 0);
}
So, it looks that (Copy from Trucking Forever)
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
Re : My own trucking server (still in development) -
Ligeti Ferenc - 22.06.2011
how can I add new admin system ? Lux admin ?
Re: My own trucking server (still in development) -
Seba. - 22.06.2011
I'm using lux admin in trucking forever.
https://sampforum.blast.hk/showthread.php?tid=120724
Here you have instruction
You can remove some LuxAdmin's commands (setscore, setcash, giveallcash, giveweapon etc.) because antyhack blocking work of this commands, but commands vget, get, lgoto, goto, get, slap, freeze, mute etc. are very useful, so I'm using LuxAdmin. Probably i change to LAdmin (it's better)
Quote:
Originally Posted by LuxurioN™
LuxAdmin Installation
Download the file!
Unzip the Files! (Recommended use Winrar)
Put 1LuxAdmin.amx' in your 'filterscripts' folder
Put plugin 1Whirlpool' in your 'plugins' folder
Put 'lfuncs', 'ldudb' and 'ladmin' in your 'pawno/include' folder
After, put the folder 'LuxAdmin' in your 'scriptfiles' folder
Open 'Server.cfg'
Go to in line 'filterscripts;
Add 'LuxAdmin' (filterscripts LuxAdmin)
Then add 'Whirlpool' in plugins line (plugins Whirlpool)
Save the file!
Done!
Other Method:
Copy all folders 'filterscripts,pawno,scriptfiles,plugins 9;
Replace the folders of your server for them.
Open 'Server.cfg'
Go to in line 'filterscripts'
Add 'LuxAdmin' (filterscripts LuxAdmin)
Then add 'Whirlpool' in plugins line (plugins Whirlpool)
Save the file!
Done!
|
Re : My own trucking server (still in development) -
Ligeti Ferenc - 24.06.2011
whats your XFire Seba ?
Re: My own trucking server (still in development) -
Rysoku - 24.06.2011
Quote:
Originally Posted by funky1234
thimo, i have to say, you just got owned.
Anywho, Good Luck with the baby! 
|
Yep, busted, I was a trusted & highly respected player there until thimo banned me for, 'cya'.
Re : My own trucking server (still in development) -
Ligeti Ferenc - 24.06.2011
this is my server:
91.82.84.189:7799
Re: Re : My own trucking server (still in development) -
Seba. - 24.06.2011
Quote:
Originally Posted by Ligeti Ferenc
whats your XFire Seba ?
|
I haven't xFire, but i have skype: sebus381
Quote:
Originally Posted by Ligeti Ferenc
this is my server: 91.82.84.189:7799
|
This server is hosted?
In server website your nick is JuSt?
edit:
i have xfire now, sebus381
Re: My own trucking server (still in development) -
[BP]Tony - 24.06.2011
Nice gm dude Nice work
Re: My own trucking server (still in development) -
BMB1 - 05.07.2011
Done?? great u begginer?
Re : My own trucking server (still in development) -
Ligeti Ferenc - 05.07.2011
PPC please fix score bug please :X:X
Re: My own trucking server (still in development) -
Pintinhas - 06.07.2011
i will translate all gamemode to PORTUGUESE.
Includes, etc etc.
Re: My own trucking server (still in development) -
ZachZ - 06.07.2011
I added all my includes to the gamemode, now its easier to edit and change things I want

keeping your credits thank you
Re: Re : My own trucking server (still in development) -
PowerPC603 - 06.07.2011
Quote:
Originally Posted by Ligeti Ferenc
PPC please fix score bug please :X:X
|
Can you describe the score bug?
I haven't seen any bugs with it yet.
And please describe how the bug can be re-produced, only then I can find the problem.
Quote:
Originally Posted by BMB1
Done?? great u begginer?
|
Yes, I was a beginner with SAMP programming, not to programming in general.
But after working on this gm for 4 months, I can hardly call myself a beginner anymore
This is the only script I created for SAMP, after having SAMP installed for 1 week before I started working on this gm.
Not sure if more scripts are coming.
IF I would create another script, it will not happen the first few years.
Re: My own trucking server (still in development) -
ZachZ - 06.07.2011
Umm how would I go on doing this,
How would I be able to spawn at my house?
Or if its not implented yet, how would I add this?
Thank you
Re: My own trucking server (still in development) -
PowerPC603 - 07.07.2011
Quote:
Originally Posted by ZachZ
Umm how would I go on doing this,
How would I be able to spawn at my house?
Or if its not implented yet, how would I add this?
Thank you
|
Do you mean that you want to spawn at your house when you login?
That would mean you need some extra options at your house too.
Since you can have more than one house, you should be able to select the house where you want to spawn by default.
That's not implemented, but you can use the command /gohome to spawn at your house at any time, free of charge.
Re: My own trucking server (still in development) -
!!--Ryder_RO--!! - 07.07.2011
Nice..
Re : My own trucking server (still in development) -
Ligeti Ferenc - 07.07.2011
Please PPC bug fixed , thank you x)
Re: My own trucking server (still in development) -
Thesmallport - 22.09.2011
Hey, I would just like to know how I can edit the max houses and businesses available.
Oh and also, How can I get weapons on the script?
Re: My own trucking server (still in development) -
ninjahippie - 22.09.2011
Quote:
Originally Posted by Thesmallport
Hey, I would just like to know how I can edit the max houses and businesses available.
Oh and also, How can I get weapons on the script?
|
go to go into the includes folder open up PCC_ServerSettings
edit the
#define MAX_HOUSESPERPLAYER
and
#define MAX_BUSINESSPERPLAYER
Don't go under 2 or over 10