Author Topic: Car HP.  (Read 8933 times)

0 Members and 1 Guest are viewing this topic.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Car HP.
« on: July 22, 2008, 01:40:32 am »
Code: [Select]
    elseif ($2 == !car) {
      var %p = $iif($3,$v1,%id)
      if ( $vcmp.hgetcarid(%id) = 0 ) {
        vcmp.adminmsg %id You are Currently on Foot
        !halt
    }
      elseif ($vcmp.nameid(%p) != $null) vcmp.adminmsg %id Vehicle Status: Model:[ $vcmp.carsnames($vcmp.hgetcarid(%id)) ] ID:[ $vcmp.carsids($vcmp.hgetcarid(%id)) ] 
      vcmp.adminmsg %id Owner:[ $vcmp.carsowners($vcmp.hgetcarid(%id)) ] Price:[ $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) ] Share:[ $vcmp.carsshares($vcmp.hgetcarid(%id)) ]
      else vcmp.adminmsg %id Error: Invalid ID.
    }

Please Add HP CAR Damage:[ 100% ]


Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Car HP.
« Reply #1 on: July 22, 2008, 06:56:04 pm »
try:
Code: [Select]
Damage: $calc(100 - $vcmp.hgetcarhp($2))

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Car HP.
« Reply #2 on: July 22, 2008, 07:21:34 pm »
Code: [Select]
    elseif ($2 == !car) {
      var %p = $iif($3,$v1,%id)
      if ( $vcmp.hgetcarid(%id) = 0 ) {
        vcmp.adminmsg %id You are Currently on Foot
        !halt
    }
      elseif ($vcmp.nameid(%p) != $null) vcmp.adminmsg %id Vehicle Status: Model:[ $vcmp.carsnames($vcmp.hgetcarid(%id)) ] ID:[ $vcmp.carsids($vcmp.hgetcarid(%id)) ] 
      vcmp.adminmsg %id Owner:[ $vcmp.carsowners($vcmp.hgetcarid(%id)) ] Price:[ $ $+  $vcmp.carsprices($vcmp.hgetcarid(%id)) ] Share:[ $vcmp.carsshares($vcmp.hgetcarid(%id)) ]
      else vcmp.adminmsg %id Error: Invalid ID.
    }

Please Add HP CAR Damage:[ 100% ]


Can you give your buycar script plzzz. I need it.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Car HP.
« Reply #3 on: July 23, 2008, 12:10:27 am »
Okis Not Problem Look In Link

http://forum.vicecitymultiplayer.com/index.php?topic=543.0 <-----  ;D

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Car HP.
« Reply #4 on: July 23, 2008, 04:09:09 am »
mmm maybe my mistake,maybe sansans hgetcarhp alias,but when i do !car it always gives me Damage : 100 :S



Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Car HP.
« Reply #5 on: July 23, 2008, 12:59:16 pm »
Teh lolz jack, thats it's HP not it's DAMAGE ;)

The script that I have used for its HP is;

Quote
vcmp.adminmsg %id Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93)

Windlord

  • Guest
Re: Car HP.
« Reply #6 on: July 23, 2008, 01:51:00 pm »
Teh lolz jack, thats it's HP not it's DAMAGE ;)

The script that I have used for its HP is;

Quote
vcmp.adminmsg %id Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93)

For Car Damage, you'd need the following,
Code: [Select]
vcmp.adminmsg %id Car Health: $chr(91) $round($calc(100 - ($vcmp.hgetcarhp(%p) / 10)),2) $+ % $chr(93)
Regards to Force

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Car HP.
« Reply #7 on: July 24, 2008, 01:25:40 am »
Teh lolz jack, thats it's HP not it's DAMAGE ;)

The script that I have used for its HP is;

Quote
vcmp.adminmsg %id Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93)

For Car Damage, you'd need the following,
Code: [Select]
vcmp.adminmsg %id Car Health: $chr(91) $round($calc(100 - ($vcmp.hgetcarhp(%p) / 10)),2) $+ % $chr(93)
Regards to Force

Ok WindLord Thx And Force  ;)

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Car HP.
« Reply #8 on: July 24, 2008, 06:39:06 am »
Teh lolz jack, thats it's HP not it's DAMAGE ;)

The script that I have used for its HP is;

Quote
vcmp.adminmsg %id Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93)

this is so weird,maybe only my problem then, xxxxxx is driving a XXX Car Heath: 0%

i crash i even set it on fire and same. :S



Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Car HP.
« Reply #9 on: July 24, 2008, 12:30:52 pm »
Can you post the %p variable please?

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Car HP.
« Reply #10 on: July 25, 2008, 03:47:03 am »
[SOLVED FOR ME]
« Last Edit: July 25, 2008, 06:05:41 am by Jack_Bauer »



Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Car HP.
« Reply #11 on: July 25, 2008, 06:23:28 am »
[SOLVED FOR ME]

YOU SOLVED FOR YOU PLEASE EXAMPLE YOU SOLVED ''X'' USER SOME USERS PLACE HIS YOU YOU DO NOT ROAST IT  >:(

Offline ReVilo

  • Wiseguy
  • **
  • Posts: 64
  • Master of All that is Holy
    • View Profile
Re: Car HP.
« Reply #12 on: July 25, 2008, 06:39:59 am »
[SOLVED FOR ME]

YOU SOLVED FOR YOU PLEASE EXAMPLE YOU SOLVED ''X'' USER SOME USERS PLACE HIS YOU YOU DO NOT ROAST IT  >:(
LMFAO ROFL LOOOOOOOOL

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Car HP.
« Reply #13 on: July 25, 2008, 06:42:56 am »
[SOLVED FOR ME]

YOU SOLVED FOR YOU PLEASE EXAMPLE YOU SOLVED ''X'' USER SOME USERS PLACE HIS YOU YOU DO NOT ROAST IT  >:(
LMFAO ROFL LOOOOOOOOL

LOOOOOOOOOOOOL !! IS MY INGLISH SORRY ALL  :'( :'( :'( :'(   :-[ :-[

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Car HP.
« Reply #14 on: July 25, 2008, 07:03:17 am »
dont worry tanax,ill roast it next time