• Welcome to Vice City Multiplayer.
 

Car HP.

Started by TanaX01, July 21, 2008, 11:40:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TanaX01

    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% ]


thijn

try:

Damage: $calc(100 - $vcmp.hgetcarhp($2))


thijn

Quote from: TanaX01 on July 21, 2008, 11:40:32 PM
    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.


TanaX01


Jack_Bauer

mmm maybe my mistake,maybe sansans hgetcarhp alias,but when i do !car it always gives me Damage : 100 :S



Force

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

Quote from: [SDT]F_T_F0RC3 on July 23, 2008, 10:59:16 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,

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

Regards to Force

TanaX01

Quote from: Windlord on July 23, 2008, 11:51:00 AM
Quote from: [SDT]F_T_F0RC3 on July 23, 2008, 10:59:16 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,

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  ;)

Jack_Bauer

Quote from: [SDT]F_T_F0RC3 on July 23, 2008, 10:59:16 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



Force

Can you post the %p variable please?

Jack_Bauer

#10
[SOLVED FOR ME]



TanaX01

Quote from: Jack_Bauer on July 25, 2008, 01:47:03 AM
[SOLVED FOR ME]

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

ReVilo

Quote from: TanaX01 on July 25, 2008, 04:23:28 AM
Quote from: Jack_Bauer on July 25, 2008, 01:47:03 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

TanaX01

Quote from: ReVilo on July 25, 2008, 04:39:59 AM
Quote from: TanaX01 on July 25, 2008, 04:23:28 AM
Quote from: Jack_Bauer on July 25, 2008, 01:47:03 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  :'( :'( :'( :'(   :-[ :-[

Jack_Bauer

dont worry tanax,ill roast it next time