Liberty Unleashed
Scripting => Script Help => Topic started by: mimomohamed on October 20, 2011, 01:42:17 pm
-
HOW CAN I MAKE THIS
function onClientEnteredVehicle( veh, seat )
{
if ( plr.Vehicle.Model = 126 )
}
how can i make { if the player enter the plane ? }
i need to make the things under IF for the plane only not for any vehicle
-
LOOK IF I NEED TO MAKE SOMETHING FOR PLAYER VEHICLE I TYPE
{
IF plr.veh
}
SO IF I NEED TO MAKE SOMETHING FOR PLAYER PLANE WHAT I MUST TYPE ????????
THAT IS ALL
-
Err what? You mean the Dodo?
-
ya the DODO
-
Then just check that player.Vehicle.Model == VEH_DODO - not hard.
-
thanks man but will it be like that
function onClientEnteredVehicle( veh, seat )
{
if ( player.Vehicle.Model == VEH_DODO )
{
if it will be like that it didn't work with me !
sorry :-X
-
Try changing it to:
function onClientEnteredVehicle( veh, seat )
{
if ( veh.Model == VEH_DODO )
{
Message("You entered a plane!");
}
}
-
sorry didn't work too
and nothing appear in the console
-
Erm, you are running this script as a client script, right?
-
<script file="p.nut" client="1"/>
-
Are you loading the right script folder in content.xml?
-
sure yes
-
Sorry, But you fail then. The script is fine...
-
thanks man i made it by using it in the speedo script :D :D :D