SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 06/07/2017, 07:42 AM   #5991
MariusTitulescu
Little Clucker
 
Join Date: Feb 2016
Posts: 5
Reputation: 0
Default Re: PPC_Trucking V1

Cool! Keep it up, man!
__________________
Marius Cargo
MariusTitulescu is offline   Reply With Quote
Old 08/07/2017, 06:48 AM   #5992
Tass007
Gangsta
 
Tass007's Avatar
 
Join Date: May 2011
Location: Somewhere not near you
Posts: 684
Reputation: 30
Default Re: PPC_Trucking V1

Quote:
Originally Posted by Honey View Post
i am trying to add Vip system but the vip vehicle does not have fuel in it what to do ??
When creating the vehicle you'll need to add the parameter of fuel into the vehicle. You'll have to look through the script and see how it's done in the first place.

Code:
Vehicle_AddStatic(vModel, Float:vX, Float:vY, Float:vZ, Float:vRotation, vC1, vC2, vSpawnDelay)
{
	// Create a new static vehicle during GameModeInit
	new vid = AddStaticVehicleEx(vModel, vX, vY, vZ, vRotation, vC1, vC2, vSpawnDelay);
	// Save the vehicle-model
    AVehicleData[vid][Model] = vModel;
	// Set the fuel to maximum so the vehicle can be used
    AVehicleData[vid][Fuel] = MaxFuel;
	// Save the colors
    AVehicleData[vid][Color1] = vC1;
    AVehicleData[vid][Color2] = vC2;
	// Set this vehicle as a static vehicle
	AVehicleData[vid][StaticVehicle] = true;

	return vid;
}

// This function is the same as Vehicle_AddStatic, but uses CreateVehicle instead of AddStaticVehicleEx, so can be used everywhere
Vehicle_Create(vModel, Float:vX, Float:vY, Float:vZ, Float:vRotation, vC1, vC2, vSpawnDelay)
{
	// Create a new static vehicle during GameModeInit
	new vid = CreateVehicle(vModel, vX, vY, vZ, vRotation, vC1, vC2, vSpawnDelay);
	// Save the vehicle-model
    AVehicleData[vid][Model] = vModel;
	// Set the fuel to maximum so the vehicle can be used
    AVehicleData[vid][Fuel] = MaxFuel;
	// Save the colors
    AVehicleData[vid][Color1] = vC1;
    AVehicleData[vid][Color2] = vC2;

	return vid;
}
Depending on how you're creating the vehicles specific for the VIP members is dependent on how you'd give the vehicle fuel.
__________________
Copyright © 2016 vR Studios
Currently working with vR Studios
Copying and pasting doesn't allow you to learn the things that reading and understanding will.
Tass007 is offline   Reply With Quote
Old 14/07/2017, 01:44 AM   #5993
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 605
Reputation: 40
Default Re: PPC_Trucking V1

Good job!
Barnwell is offline   Reply With Quote
Old 14/07/2017, 02:43 PM   #5994
Wazowski
Little Clucker
 
Wazowski's Avatar
 
Join Date: Jun 2017
Posts: 25
Reputation: 2
Default Re: PPC_Trucking V1

alguien puede pasarme este server completo con todo lo que le falta ? quiero ponerlo a descargar y que ya este en linea por favor , soy nuevo
Wazowski is offline   Reply With Quote
Old 15/07/2017, 04:22 AM   #5995
feheristi97
Big Clucker
 
Join Date: Jun 2014
Location: Canada
Posts: 95
Reputation: 4
Default Re: PPC_Trucking V1

I heard there will be a MySQL version of this gamemode, does anyone know when or it's still in development?
feheristi97 is offline   Reply With Quote
Old 15/07/2017, 03:47 PM   #5996
DonaldDuck
Banned
 
Join Date: Jun 2017
Location: Phillipines
Posts: 368
Reputation: 91
Default Re: PPC_Trucking V1

Nice.
DonaldDuck is offline   Reply With Quote
Old 06/08/2017, 06:58 PM   #5997
Banditul18
Huge Clucker
 
Join Date: Nov 2014
Location: Brasov,Romania
Posts: 251
Reputation: 21
Default Re: PPC_Trucking V1

Quote:
Originally Posted by feheristi97 View Post
I heard there will be a MySQL version of this gamemode, does anyone know when or it's still in development?
Will be another gamemode made from scratch, not this one. This one is out of development. Bu i manage to make a update to mysql r41-3 easy
__________________
My works: Github
Banditul18 is offline   Reply With Quote
Old 01/09/2017, 05:40 PM   #5998
Honey
Big Clucker
 
Join Date: Apr 2013
Posts: 114
Reputation: -6
Default Re: PPC_Trucking V1

can some body make a function that payment was deducted due to bad driving for every truckers ,pilots and bus driver ??
Honey is offline   Reply With Quote
Old 01/09/2017, 07:36 PM   #5999
Quantella
Big Clucker
 
Join Date: Jun 2017
Posts: 50
Reputation: 6
Default Re: PPC_Trucking V1

Coo'.
Quantella is offline   Reply With Quote
Old 01/09/2017, 08:02 PM   #6000
TheBlackstone
Little Clucker
 
Join Date: Jun 2017
Posts: 5
Reputation: 1
Default Re: PPC_Trucking V1

Nice gamemode!
TheBlackstone is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] PPC_TRUCKING ThiagoMK PortuguÍs/Portuguese 4 30/07/2013 05:44 PM
Fix id Bug in PPC_Trucking Geeboi_Mehdi Client Support 11 18/05/2013 08:02 PM
PPC_Trucking Baumann Scripting Help 1 07/12/2012 03:28 PM
PPC_Trucking Baumann Scripting Help 1 02/12/2012 02:43 PM
PPC_Trucking help Private200 Scripting Help 1 16/11/2012 08:23 AM


All times are GMT. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.