Author Topic: Buying car armor doesn't work while being shot at (sometimes)  (Read 639 times)

0 Members and 1 Guest are viewing this topic.

Offline Hank_Montgomery

  • Original Gangster
  • *
  • Posts: 595
  • Country: ua
  • Respect: +51/-28
  • Bring 2000 vehicle armor health points back again!
    • View Profile
  • MCNR name: Hank_Montgomery
1:15 It seems to me it could be associated with the engine breaking script, but needs further testing i believe.

Offline Goldenman

  • Banned
  • *
  • Posts: 713
  • Country: ir
  • Respect: +14/-32
  • Gender: Male
    • View Profile
  • MCNR name: Goldenman
  • Discord name: goldenboyi
Re: Buying car armor doesn't work while being shot at (sometimes)
« Reply #1 on: March 31, 2023, 08:04:04 am »
i think it won't change the car's health when it reaches a certain amount but as it not refunds you, I'll test it out thanks for reporting

Offline Mike

  • Server Owner
  • *
  • Posts: 3681
  • Country: gb
  • Respect: +413/-71
  • Gender: Male
    • View Profile
  • MCNR name: Mike
  • Discord name: mp2
Re: Buying car armor doesn't work while being shot at (sometimes)
« Reply #2 on: April 05, 2023, 09:39:50 pm »
I think it's just desync there. I think the server gives your vehicle 2000hp but you get shot before it has a chance to sync back to the server that it has 2000hp, so when you get shot immediately after getting 2000hp it reduces the vehicle health from the old health, not from 2000hp.

SA-MP sync is a pain in the ass to deal with.
- Server sets vehicle health to 2000hp
- This is communicated to nearby clients (players)
- One of them (closest?) syncs back to the server 'yes, vehicle now has 2000hp thanks'
- If the server gets the vehicle's health between it being set and it being synced back, this sort of thing happens.

I really should introduce server-sided health. It would reduce cheating, too.

All that being said, I kinda think if you get shot/damaged while in that black screen it should cancel your transaction... that delay was added literally for this reason - people can just nip into a gas station mid gunfight and heal their vehicle while being shot at...
View trailers here.


Offline Ardealul

  • *
  • Posts: 635
  • Country: 00
  • Respect: +17/-11
  • Gender: Male
  • [color=white]Why can't we use colors here[/color]
    • View Profile
  • MCNR name: Ardealul
  • Discord name: arduel
Re: Buying car armor doesn't work while being shot at (sometimes)
« Reply #3 on: October 04, 2023, 08:41:12 pm »
Moved to Invalid Bugs.