[Problem] Vehicle Damage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Problem] Vehicle Damage (
/showthread.php?tid=248054)
[Problem] Vehicle Damage -
TiNcH010 - 11.04.2011
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
Respuesta: [Problem] Vehicle Damage -
MrDeath537 - 11.04.2011
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.
Re: [Problem] Vehicle Damage -
Fj0rtizFredde - 11.04.2011
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);
}
Re: Respuesta: [Problem] Vehicle Damage -
TiNcH010 - 11.04.2011
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!