Liberty Unleashed
Scripting => Script Help => Topic started by: mimomohamed on August 21, 2012, 02:36:25 pm
-
why it doesn't appear when I use this command
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 .
-
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 ) );
}
-
Thanks Very Much man :)
I Have another problem that the speedo still appear when i use this command
if ( szCommand == "getout" )
{
if ( pPlayer.Vehicle )
{
pPlayer.RemoveFromVehicle();
}
else MessagePlayer( "you are not in a vehicle", pPlayer );
}
-
Set this Vehicle Velocity to 0.0
and then, give a command to exit this veh with player animation.
-
really thanks too nice idea :)