Author Topic: help  (Read 7601 times)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
help
« 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
« Last Edit: October 20, 2011, 01:44:18 pm by mimomohamed »

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #1 on: October 20, 2011, 07:52:55 pm »
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

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: help
« Reply #2 on: October 20, 2011, 08:16:04 pm »
Err what? You mean the Dodo?
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #3 on: October 20, 2011, 08:55:59 pm »
ya the DODO

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: help
« Reply #4 on: October 20, 2011, 09:49:43 pm »
Then just check that player.Vehicle.Model == VEH_DODO - not hard.
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #5 on: October 21, 2011, 10:28:05 am »
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

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: help
« Reply #6 on: October 21, 2011, 01:35:31 pm »
Try changing it to:
Code: [Select]
function onClientEnteredVehicle( veh, seat )
{
if ( veh.Model == VEH_DODO )
{
Message("You entered a plane!");
}
}

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #7 on: October 21, 2011, 02:21:39 pm »
sorry didn't work too
and nothing appear in the console
« Last Edit: October 21, 2011, 02:31:02 pm by mimomohamed »

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: help
« Reply #8 on: October 21, 2011, 06:21:06 pm »
Erm, you are running this script as a client script, right?
Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #9 on: October 22, 2011, 11:16:07 am »
<script file="p.nut" client="1"/>

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: help
« Reply #10 on: October 22, 2011, 03:57:12 pm »
Are you loading the right script folder in content.xml?

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #11 on: October 23, 2011, 06:43:59 am »
sure yes

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: help
« Reply #12 on: October 23, 2011, 07:23:09 pm »
Sorry, But you fail then. The script is fine...

mimomohamed

  • Full Member
  • ***
  • Posts: 126
  • Karma: +5/-1
    • View Profile
    • http://www.egyptforall.smffy.com
Re: help
« Reply #13 on: October 24, 2011, 03:53:31 pm »
thanks man i made it by using it in the speedo script  :D :D :D

 

© Liberty Unleashed Team.