[GameMode] PPC_Trucking V1
#61

How can I add new Trucking depo ? in /rescue ?
Reply
#62

Quote:
Originally Posted by Ligeti Ferenc
View Post
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
Reply
#63

how can I add new admin system ? Lux admin ?
Reply
#64

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&#3 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!
Reply
#65

whats your XFire Seba ?
Reply
#66

Quote:
Originally Posted by funky1234
View Post
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'.
Reply
#67

this is my server: 91.82.84.189:7799
Reply
#68

Quote:
Originally Posted by Ligeti Ferenc
View Post
whats your XFire Seba ?
I haven't xFire, but i have skype: sebus381


Quote:
Originally Posted by Ligeti Ferenc
View Post
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
Reply
#69

Nice gm dude Nice work
Reply
#70

Done?? great u begginer?
Reply
#71

PPC please fix score bug please :X:X
Reply
#72

i will translate all gamemode to PORTUGUESE.
Includes, etc etc.
Reply
#73

I added all my includes to the gamemode, now its easier to edit and change things I want keeping your credits thank you
Reply
#74

Quote:
Originally Posted by Ligeti Ferenc
View Post
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
View Post
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.
Reply
#75

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

Quote:
Originally Posted by ZachZ
View Post
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.
Reply
#77

Nice..
Reply
#78

Please PPC bug fixed , thank you x)
Reply
#79

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

Quote:
Originally Posted by Thesmallport
View Post
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)