[Problem] Vehicle Damage
#1

Hello! I have a problem that no re settlement case, posts always bring hard xD!
Well the thing is so. I have my GM that I did my RP and added those spikes that will puncture the tires, the effect is caused in OnPlayerUpdate
pawn Код:
GetVehicleDamageStatus (charity, panels, doors, lights, tires);
and
pawn Код:
UpdateVehicleDamageStatus (charity, panels, doors, lights, tires);
Obiamente with their respective functions. Well the thing is that that GM works perfectly and I poked the 4 tires to pass over, but I put all my other GM as well and will not damage the rubber.
Is there another way? What's wrong? Anything is an upgrade include? I have samp 0.3C with the other GM I go and with this I use now: /
Greetings
Reply
#2

I recommend you to search spanish words on the translation when you translate from spanish to english.

[SPANISH] Ya te respondн en la secciуn de Espaсol.
Reply
#3

I dont really get it but does it work or not? You could try to use a code like this:
pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(charity, panels, doors, lights, tires);
tires = encode_tires(1, 1, 1, 1); //Will damage all the tires
UpdateVehicleDamageStatus(charity, panels, doors, lights, tires);

//Put this at the bottom of your script:
encode_tires(tires1, tires2, tires3, tires4)
{
    return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
}
Reply
#4

Quote:
Originally Posted by MrDeath537
Посмотреть сообщение
I recommend you to search spanish words on the translation when you translate from spanish to english.

[SPANISH] Ya te respondн en la secciуn de Espaсol.
Gracias ya lo vi

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
I dont really get it but does it work or not? You could try to use a code like this:
pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(charity, panels, doors, lights, tires);
tires = encode_tires(1, 1, 1, 1); //Will damage all the tires
UpdateVehicleDamageStatus(charity, panels, doors, lights, tires);

//Put this at the bottom of your script:
encode_tires(tires1, tires2, tires3, tires4)
{
    return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
}
already had that. well thanks.
proves it!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)