FinchDon

  • Sr. Member
  • Posts: 252
Player.Seat
« on September 13th, 2015, 08:13 AM »
What This function used for? player.Seat I got Example from old Wiki

Code: [Select]
function onPlayerCommand( player, cmd, text ) { if ( cmd == "passenger" ) { if ( player.Seat != 255 ) MessagePlayer( "You are curently on seat number " + player.Seat, player ); else MessagePlayer( "You are not in a vehicle.", player ); } }



Code: [Select]
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

jayant

  • Full Member
  • #MOMO-CS
  • Posts: 163
Re: Player.Seat
« Reply #1, on September 13th, 2015, 08:56 AM »
You saw a healing ambulance in vccnr ? If yes,It can be used for that purpose and other things according to you.

KAKAN

  • Wiki Contributor
  • Posts: 3,343
Re: Player.Seat
« Reply #2, on September 13th, 2015, 09:46 AM »
Quote from jayant on September 13th, 2015, 08:56 AM
You saw a healing ambulance in vccnr ? If yes,It can be used for that purpose and other things according to you.
How to make a healing ambulance?
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

FinchDon

  • Sr. Member
  • Posts: 252
Re: Player.Seat
« Reply #3, on September 13th, 2015, 10:03 AM »
What do you mean ??? I Didnt understand
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

Xmair

  • Wiki Contributor
  • Posts: 930
Re: Player.Seat
« Reply #4, on September 13th, 2015, 10:44 AM »
@KAKAN .
It's easy.
Whenever a player enters a vehicle.
Check the vehicle, if it is an ambulance, Heal the player.
I will post an example when I get on my pc.
VU Full Member | VCCNR Developer | KTB Developer | EAD Ex-Scripter

MacTavish

  • Hero Member
  • Nicks( Kusanagi, Beztone, RATHORE )
  • Posts: 809
Re: Player.Seat
« Reply #5, on September 13th, 2015, 10:46 AM »
Just an example but not tested because i posted from mobile
Code: [Select]

onPlayerEnterVehicle( player, vehicle, door )
{
if (player.Vehicle.Model == AMBULANCEmodelid  && player.Seat == 0)
{
player.Health = 100;
MessagePlayer("Healed",player);
}
}

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

  • Wiki Contributor
  • Posts: 3,343
Re: Player.Seat
« Reply #6, on September 13th, 2015, 11:00 AM »
:P, this system can be used to evade tho, anyways you gave me the IDEA, thanks!
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

FinchDon

  • Sr. Member
  • Posts: 252
Re: Player.Seat
« Reply #7, on September 13th, 2015, 11:04 AM »
I didn't ask for ambulance system i just wanna know what is player.Seat -_-
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

Thijn

  • VC:MP Beta Tester
  • Posts: 1,688
Re: Player.Seat
« Reply #8, on September 13th, 2015, 11:15 AM »
Quote from FinchDon on September 13th, 2015, 11:04 AM
I didn't ask for ambulance system i just wanna know what is player.Seat -_-
If you actually understand English you would've known by now. It returns the seat a player is sitting in. 0 is driver, 1,2,3 passenger.