Quote from: rww on Jun 09, 2018, 02:24 PMWith this, only driver can flip the car
How about
Code Select
if ( player.VehicleSlot == 0 ) MessagePlayer( "[#ff1111]Error: [#ffffff]You must be a driver." , player );
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: rww on Jun 09, 2018, 02:24 PMWith this, only driver can flip the car
if ( player.VehicleSlot == 0 ) MessagePlayer( "[#ff1111]Error: [#ffffff]You must be a driver." , player );
Quote from: MatheuS on May 12, 2018, 02:56 PMQuote from: Rest on May 12, 2018, 12:59 AMQuote from: MatheuS on May 11, 2018, 04:40 PMEu não entendi direito o que você quis dizer, mas é algo como isso:Please keep it in English, I couldn't understand what you said without translator.
This is one way, but the vehicles are tped, too
Ops, sorry!function Teleport( player, posx, posy, posz )
{
if ( player.IsSpawned )
{
if ( player.Vehicle ) player.Pos = player.Pos, player.Pos = Vector( posx, posy, posz );
else {
player.Pos = Vector( posx, posy, posz );
}
}
}
I've tested and works fine for me
Quote from: MatheuS on May 11, 2018, 04:40 PMEu não entendi direito o que você quis dizer, mas é algo como isso:Please keep it in English, I couldn't understand what you said without translator.
function Teleport( player, posx, posy, posz )
{
if ( player.IsSpawned )
{
if ( player.Vehicle ) player.Vehicle = FindVehicle( ID_OF_THE_SPECIAL_VEHICLE );
player.Pos = Vector( posx, posy, posz );
}
}
function Drown( player, reason )
{
Message( "Admin server drowned [ " + player.Name + " ] reason:[ " + reason + " ]." );
Teleport( player, -376.6, 47.8846, 10.7041 ); //teleporting the player
}
Quote from: vitogta on Mar 02, 2018, 10:15 AMYou can do it via creating marker for Player.UniqueWorld but using that keep in mind you are limited of server resources since there is only 100 markers per whole server.
EnteringVehicle <- array( 100, -1 );
Carjack_J <- BindKey( true, 0x4A, 0, 0 );
if ( EnteringVehicle[ player.ID ] != -1 ) return 1;
EnteringVehicle[ player.ID ] = vehicle.ID;
EnteringVehicle[ player.ID ] = -1;
if ( key == Carjack_J ) //
{
if ( EnteringVehicle[ player.ID ] != -1 )
{
local veh = FindVehicle( EnteringVehicle[ player.ID ] );
if ( veh )
{
if ( veh.Driver && veh.Driver.ID != player.ID ) PrivMessage( veh.Driver, player.Name + " hijacked your vehicle!" );
player.PutInVehicleSlot( veh, 0 );
EnteringVehicle[ player.ID ] = -1;
}
}
}
Press J when you are entering vehicle as a passenger.Quote from: Mahmoud Tornado on Aug 26, 2017, 05:41 PMi must edit on it to and add some sa-mp logos ?