Author Topic: Problem With the speedo  (Read 1272 times)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Problem With the speedo
« on: August 21, 2012, 02:36:25 pm »
why it doesn't appear when I use this command

Quote
if ( szCommand == "enter" )
   {
      local veh = GetClosestVehicle( pPlayer );
      if ( veh )
      {
         MessagePlayer( "Placing you in the closest vehicle to you", pPlayer );
         pPlayer.Vehicle = veh;
      }
      else MessagePlayer( "couldn't find any car", pPlayer, Colour( 0, 255, 0 ) );
   }

why????

help please .

Rocky

  • Full Member
  • ***
  • Posts: 105
  • Karma: +5/-3
    • View Profile
Re: Problem With the speedo
« Reply #1 on: August 21, 2012, 03:12:30 pm »
Code: [Select]
if ( szCommand == "enter" )
   {
      local veh = GetClosestVehicle( pPlayer );
      if ( veh )
      {
           MessagePlayer( "Placing you in the closest vehicle to you", pPlayer );
           player.Pos = veh.Pos;
           player.EnterVehicle( veh , DOOR_DRIVER );
      }
      else MessagePlayer( "couldn't find any car", pPlayer, Colour( 0, 255, 0 ) );
   }
   
Look for lu server testers, Requirements are:
English good enough to communicate.
Good knowledge about gaming.

PM me those who are interested.

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: Problem With the speedo
« Reply #2 on: August 21, 2012, 03:43:19 pm »
Thanks Very Much man :)
I Have another problem that the speedo still appear when i use this command

Quote
if ( szCommand == "getout" )
       {
      if ( pPlayer.Vehicle )
      {
              pPlayer.RemoveFromVehicle();
      }
      else MessagePlayer( "you are not in a vehicle", pPlayer );
       }
« Last Edit: August 21, 2012, 04:20:08 pm by mimomohamed »

VetalYA

  • Guest
Re: Problem With the speedo
« Reply #3 on: August 21, 2012, 10:17:43 pm »
Set this Vehicle Velocity to 0.0

and then, give a command to exit this veh with player animation.

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: Problem With the speedo
« Reply #4 on: August 22, 2012, 11:12:31 am »
really thanks too nice idea :)

 

© Liberty Unleashed Team.