Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
whitedragon - 03.08.2011
I mean how to use: UpdateVehicleDamageStatus with this?
AW: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
Nanory - 03.08.2011
pawn Код:
public OnEmptyVehicleDamage(vehicleid,playerid,exems)
{
new Float:VehHealth;
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
GetVehicleHealth(vehicleid,VehHealth);
if(GetPlayerWeapon(playerid) <= 15){SetVehicleHealth(vehicleid,VehHealth-random(100));}
else{SetVehicleHealth(vehicleid,VehHealth-random(200));}
//-------------------------
if(VehHealth <= 900 && VehHealth >= 700)
{
panels = encode_panels(1, 0, 1, 0, 1, 0, 1);
doors = encode_doors(1, 1, 1, 1, 1, 1);
}
else if(VehHealth <= 700 && VehHealth >= 500)
{
panels = encode_panels(1, 2, 1, 2, 1, 2, 1);
doors = encode_doors(2, 2, 2, 2, 2, 2);
}
else if(VehHealth <= 500 && VehHealth >= 300)
{
panels = encode_panels(3, 2, 3, 2, 3, 2, 3);
doors = encode_doors(3, 3, 3, 3, 3, 3);
}
else if(VehHealth <= 300)
{
panels = encode_panels(3, 3, 3, 3, 3, 3, 3);
doors = encode_doors(4, 4, 4, 4, 4, 4);
}
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
return 1;
}
encode_doors and
encode_panels are from the sa-mp wiki (
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate)
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
whitedragon - 03.08.2011
I was wondering... How to make panel(windshield << 16) when player shot windshield?
Re : OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
grekon - 20.01.2012
I trued it, and it doesn't working.
As a found, GetPlayerKeys(playerid,newkeys,plyup,plylr) function always return 0. Why is it happens?
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
rbN. - 20.01.2012
It doesnt work anymore because vehicle sync kind of changed in 0.3d. If you shoot a car now it doesn't move anymore. Thats why that this script won't work anymore
AW: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
NaS - 20.01.2012
RobinOwnz is right. The only things that work is hitting the vehicle with a bat or something.
Re: AW: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
rbN. - 21.01.2012
Quote:
Originally Posted by NaS
RobinOwnz is right. The only things that work is hitting the vehicle with a bat or something.
|
Well there's a bug if you mean that: You can damage other vehicles if you have a parachute equipped..
AW: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
NaS - 21.01.2012
No, if you hit the car (with a meelee weapon) it will move, because you run into the car, so the callback is called.
AW: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
Nanory - 22.01.2012
I would fix it, but it seems useless, because most of this functions doesn't work since 0.3d ... :/
Sry guys
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
aurimasko - 22.01.2012
please fix it..
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
The_Coder - 30.03.2012
make a 0.3e version please

Good work
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
mprofitt - 10.05.2012
Quote:
Originally Posted by The_Coder
make a 0.3e version please 
Good work
|
I second this.
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
NoahF - 29.09.2012
I'm so glad something like this finally got posted. THANK YOU for this! I always hated that you couldn't damage an empty vehicle! +REP
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
CaptainMactavish - 29.09.2012
Quote:
Originally Posted by NoahF
I'm so glad something like this finally got posted. THANK YOU for this! I always hated that you couldn't damage an empty vehicle! +REP
|
Seems like you don't read anything, this doesn't work since 0.3d, only in 0.3c.
Re: OnEmptyVehicleDamage - Damage an empty vehicle (v0.1) [0.3c R3 Server] -
OKStyle - 30.08.2013
I did this for six months before ))
http://*********/YKyjOElMbng