SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/06/2017, 02:56 PM   #5991
Honey
Big Clucker
 
Join Date: Apr 2013
Posts: 114
Reputation: -6
Default Re: PPC_Trucking V1

i am trying to add Vip system but the vip vehicle does not have fuel in it what to do ??
Honey is offline   Reply With Quote
Old 05/07/2017, 09:09 PM   #5992
DrakeAF
Little Clucker
 
DrakeAF's Avatar
 
Join Date: Jun 2017
Posts: 10
Reputation: 0
Default Re: PPC_Trucking V1

This is really cool.
Nice job!
DrakeAF is offline   Reply With Quote
Old 06/07/2017, 08:42 AM   #5993
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, 07:48 AM   #5994
Tass007
Gangsta
 
Tass007's Avatar
 
Join Date: May 2011
Location: Somewhere not near you
Posts: 672
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, 02:44 AM   #5995
Barnwell
Gangsta
 
Barnwell's Avatar
 
Join Date: May 2014
Location: England
Posts: 543
Reputation: 25
Default Re: PPC_Trucking V1

Good job!
__________________
Looking for a scripter << I am back to SA-MP again! >>
Barnwell is offline   Reply With Quote
Old 14/07/2017, 03:43 PM   #5996
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, 05:22 AM   #5997
feheristi97
Big Clucker
 
Join Date: Jun 2014
Location: Canada
Posts: 93
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, 04:47 PM   #5998
DonaldDuck
Huge Clucker
 
DonaldDuck's Avatar
 
Join Date: Jun 2017
Location: Philippines
Posts: 284
Reputation: 44
Default Re: PPC_Trucking V1

Nice.
__________________

Dynamic Backpack System | Dynamic Land System | Dynamic House and Furniture System | Name Tag System and much more!
--------------------------------------------------------------------------
[AG] Call of Duty - Advance Warfare (Developer)
--------------------------------------------------------------------------

Skype: JessieDuck
DonaldDuck is offline   Reply With Quote
Old 06/08/2017, 07:58 PM   #5999
Banditul18
Huge Clucker
 
Join Date: Nov 2014
Location: Brasov,Romania
Posts: 238
Reputation: 18
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 online now   Reply With Quote
Old 01/09/2017, 06:40 PM   #6000
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
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 06:44 PM
Fix id Bug in PPC_Trucking Geeboi_Mehdi Client Support 11 18/05/2013 09:02 PM
PPC_Trucking Baumann Scripting Help 1 07/12/2012 04:28 PM
PPC_Trucking Baumann Scripting Help 1 02/12/2012 03:43 PM
PPC_Trucking help Private200 Scripting Help 1 16/11/2012 09:23 AM


All times are GMT. The time now is 05:57 PM.


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