[Include] [0.3z]a_OnPlayerShootVehiclePart
#29

Quote:
Originally Posted by PT
Посмотреть сообщение
Nice Work.

add some way do destroy engine ( good to RP )
Thanks, yes i will add ENGINE detection. Will be done tomorrow.
Quote:
Originally Posted by Mauzen
Посмотреть сообщение
The Enable... functions arent needed here. In some cases it could be useful to disable it again, so you should rather change them to setters with a parameter (you could also replace them with defines, thats the fastest way to handle getter/setter-functions in pawn).
The reason why samp uses such "one-time-enablers" is probably because they change the way the server is initialized, and it would be pretty difficult or technically impossible to disable them during the server runtime.
Here it would be no problem, and, as said, in some cases even pretty useful, to disable the detecions.

Nice work nevertheless.


Im also curious, but too lazy to test, if the OnPlayerWeaponShot offsets are relative to the rotation/angle. If they are, this should work correctly. Would be pretty useless to give unrotated offsets though, but maybe thats the way GTA provides that data.
I did some test with the offsets in different angles with the petrol cap. Works great. About the Enable function. Tomorrow i will add a toggle function.
Reply


Messages In This Thread
[0.3z]a_OnPlayerShootVehiclePart - by Admigo - 19.01.2014, 19:33
Respuesta: [0.3z]a_OnPlayerShootVehiclePart - by Swedky - 19.01.2014, 19:37
Re: [0.3z]a_OnPlayerShootVehiclePart - by Patrick - 19.01.2014, 19:39
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 19.01.2014, 19:45
Re: [0.3z]a_OnPlayerShootVehiclePart - by KingHual - 19.01.2014, 19:51
Re: [0.3z]a_OnPlayerShootVehiclePart - by Pottus - 19.01.2014, 20:05
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 19.01.2014, 20:13
Re: [0.3z]a_OnPlayerShootVehiclePart - by Akcent_Voltaj - 20.01.2014, 14:26
Re: [0.3z]a_OnPlayerShootVehiclePart - by iZN - 20.01.2014, 15:24
Re: [0.3z]a_OnPlayerShootVehiclePart - by Lordzy - 20.01.2014, 15:58
Re: [0.3z]a_OnPlayerShootVehiclePart - by PaulDinam - 20.01.2014, 18:17
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 20.01.2014, 20:13
Re: [0.3z]a_OnPlayerShootVehiclePart - by Kar - 21.01.2014, 00:10
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 21.01.2014, 07:33
Re: [0.3z]a_OnPlayerShootVehiclePart - by PaulDinam - 21.01.2014, 15:15
Re: [0.3z]a_OnPlayerShootVehiclePart - by Ace155 - 21.01.2014, 15:55
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 21.01.2014, 16:22
Re: [0.3z]a_OnPlayerShootVehiclePart - by Diesel5 - 21.01.2014, 17:25
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 21.01.2014, 20:37
Re: [0.3z]a_OnPlayerShootVehiclePart - by PT - 21.01.2014, 20:47
Re: [0.3z]a_OnPlayerShootVehiclePart - by Kar - 21.01.2014, 20:58
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 21.01.2014, 21:03
Re: [0.3z]a_OnPlayerShootVehiclePart - by Kar - 21.01.2014, 23:12
Re: [0.3z]a_OnPlayerShootVehiclePart - by Mauzen - 21.01.2014, 23:25
Re: [0.3z]a_OnPlayerShootVehiclePart - by Kar - 21.01.2014, 23:48
Re: [0.3z]a_OnPlayerShootVehiclePart - by Pottus - 22.01.2014, 03:17
Re: [0.3z]a_OnPlayerShootVehiclePart - by Luis- - 22.01.2014, 13:58
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 22.01.2014, 14:30
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 22.01.2014, 20:55
Re: [0.3z]a_OnPlayerShootVehiclePart - by Kar - 22.01.2014, 22:39
Re: [0.3z]a_OnPlayerShootVehiclePart - by Admigo - 29.01.2015, 16:55
Re: [0.3z]a_OnPlayerShootVehiclePart - by Ritzy2K - 24.02.2015, 18:28
Re: [0.3z]a_OnPlayerShootVehiclePart - by 26_RUSSS - 18.03.2015, 23:29
Re: [0.3z]a_OnPlayerShootVehiclePart - by Abagail - 19.03.2015, 02:30
Re: [0.3z]a_OnPlayerShootVehiclePart - by IzadorO - 18.06.2015, 19:09
Re: [0.3z]a_OnPlayerShootVehiclePart - by TheArcher - 18.06.2015, 19:27

Forum Jump:


Users browsing this thread: 4 Guest(s)