Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: Luis_Labarca on Jul 12, 2016, 04:31 AM

Title: Vehicle Slot
Post by: Luis_Labarca on Jul 12, 2016, 04:31 AM
Hello I wanted to ask if there is a way to know in that slot I find myself being in a vehicle
try with
MessagePlayer (vehicle. Slot+ "", player);
and with
MessagePlayer (player. PutInVehicleSlot+ "", player);
It is to get a player to a vehicle but anyway I wanted to be sure lol ;D

is what I want to know as show in that slot I find inside a vehicle

Thank you ;) ;)
Title: Re: Vehicle Slot
Post by: Xmair on Jul 12, 2016, 04:55 AM
I can't really understand your English, but if you're asking about putting a player in a vehicle, the function is PutInVehicleSlot( vehicle_instance, slot_integer ), and to find out if a slot in a vehicle is free or not, you can use vehicle.GetOccupant( slot_integer ).
Title: Re: Vehicle Slot
Post by: Luis_Labarca on Jul 12, 2016, 05:47 AM
Quote from: Xmair on Jul 12, 2016, 04:55 AMI can't really understand your English, but if you're asking about putting a player in a vehicle, the function is PutInVehicleSlot( vehicle_instance, slot_integer ), and to find out if a slot in a vehicle is free or not, you can use vehicle.GetOccupant( slot_integer ).
;DThank you very much bro and sorry for the English is my language is not English is Spanish and use the bing translator so that I can understand a little better ;)

Title: Re: Vehicle Slot
Post by: Xmair on Jul 12, 2016, 06:08 AM
Quote from: LuisModsHD on Jul 12, 2016, 05:47 AM
Quote from: Xmair on Jul 12, 2016, 04:55 AMI can't really understand your English, but if you're asking about putting a player in a vehicle, the function is PutInVehicleSlot( vehicle_instance, slot_integer ), and to find out if a slot in a vehicle is free or not, you can use vehicle.GetOccupant( slot_integer ).
;DThank you very much bro and sorry for the English is my language is not English is Spanish and use the bing translator so that I can understand a little better ;)


Use google translator, it's better.
Title: Re: Vehicle Slot
Post by: Finch Real on Jul 12, 2016, 06:16 AM
If you want vehicle slots then create table vehicleslots name slots on register put player.name there and slots  = 0 and on playerbuycar SetSlots( player,GetSlots( player ) + 1;
And check on player buycar if ( GetSlots( player ) == 3 ) Message( "You cannot buy car more than 3 Slots " );
And create setslots getslots yourself
Title: Re: Vehicle Slot
Post by: Thijn on Jul 12, 2016, 06:17 AM
Quote from: Finch Real on Jul 12, 2016, 06:16 AMIf you want vehicle slots then create table vehicleslots name slots on register put player.name there and slots  = 0 and on playerbuycar SetSlots( player,GetSlots( player ) + 1;
And check on player buycar if ( GetSlots( player ) == 3 ) Message( "You cannot buy car more than 3 Slots " );
And create setslots getslots yourself
What? ...
Title: Re: Vehicle Slot
Post by: Xmair on Jul 12, 2016, 06:19 AM
He did not meant that....
Title: Re: Vehicle Slot
Post by: KAKAN on Jul 12, 2016, 08:39 AM
Quote from: Thijn on Jul 12, 2016, 06:17 AM
Quote from: Finch Real on Jul 12, 2016, 06:16 AMIf you want vehicle slots then create table vehicleslots name slots on register put player.name there and slots  = 0 and on playerbuycar SetSlots( player,GetSlots( player ) + 1;
And check on player buycar if ( GetSlots( player ) == 3 ) Message( "You cannot buy car more than 3 Slots " );
And create setslots getslots yourself
What? ...
We need some translators!
Title: Re: Vehicle Slot
Post by: EK.IceFlake on Jul 12, 2016, 12:24 PM
Now we're sure he's Finch.
Title: Re: Vehicle Slot
Post by: Finch Real on Jul 12, 2016, 01:36 PM
I Dunno What he has Asked for I thought he is asking for vehicle slots and @Thijn i was giving him some example on how to create slots i am from mob or else i script the whole code
Title: Re: Vehicle Slot
Post by: Thijn on Jul 12, 2016, 04:25 PM
Quote from: Finch Real on Jul 12, 2016, 01:36 PMI Dunno What he has Asked for I thought he is asking for vehicle slots and @Thijn i was giving him some example on how to create slots i am from mob or else i script the whole code
He was talking about slots, as in the seats in a car. I don't see how that has anything to do with max owned vehicles :P
Title: Re: Vehicle Slot
Post by: EK.IceFlake on Jul 13, 2016, 06:43 AM
Well in the VKs official server you get [I don't remember] 'slots' that you can keep any vehicle into
Title: Re: Vehicle Slot
Post by: Finch Real on Jul 15, 2016, 11:57 AM
Well i have question as thijn said He was asking for seats slots Can't it be more than 4 slots in any car or in custom car?
Title: Re: Vehicle Slot
Post by: KAKAN on Jul 15, 2016, 12:51 PM
Quote from: Finch Real on Jul 15, 2016, 11:57 AMWell i have question as thijn said He was asking for seats slots Can't it be more than 4 slots in any car or in custom car?
if you make it like that, then yes.
Title: Re: Vehicle Slot
Post by: Finch Real on Jul 15, 2016, 12:55 PM
Because as i know while creating my project gta pak i have added cars wih mvl in which 4x4 car has 5 seats which means 5 mans cañ sit in it
Title: Re: Vehicle Slot
Post by: KAKAN on Jul 15, 2016, 12:56 PM
Quote from: Finch Real on Jul 15, 2016, 12:55 PMBecause as i know while creating my project gta pak i have added cars wih mvl in which 4x4 car has 5 seats which means 5 mans cañ sit in it
As I said, if you make it like that, it can handle x seats. Does not depend on MVL I guess.
Title: Re: Vehicle Slot
Post by: Murdock on Jul 15, 2016, 04:52 PM
Quote from: Finch Real on Jul 15, 2016, 12:55 PM4x4 car has 5 seats which means 5 mans cañ sit in it

Why are women not allowed to sit in your car?
Title: Re: Vehicle Slot
Post by: EK.IceFlake on Jul 15, 2016, 05:10 PM
Quote from: Murdock on Jul 15, 2016, 04:52 PM
Quote from: Finch Real on Jul 15, 2016, 12:55 PM4x4 car has 5 seats which means 5 mans cañ sit in it

Why are women not allowed to sit in your car?
Because this may cause unexpected side effects with the men.