Silenced Pistol Speed Checker
#9

Put the code under OnPlayerKeyStateChange, check if key = fire, perform a check of which weapon the player is using, use GetPlayerCameraPos, get the vehicle ID from the position (perform a loop of all vehicles in range of where the shot was at), use one of the pre-existing speed checking functions on the vehicle ID, send a textdraw with the speed etc.

Shady91 scripted something similar a while ago that he showed me ([ame]http://www.youtube.com/watch?v=K01H38bLVRc[/ame]) which may be released in his 'City Role Play' script.

I would have written the code for you, but I can't really be bothered.
Reply


Messages In This Thread
Silenced Pistol Speed Checker - by Ritchie999 - 24.10.2010, 22:53
Re: Silenced Pistol Speed Checker - by Lenny the Cup - 24.10.2010, 23:18
Re: Silenced Pistol Speed Checker - by Whizion - 25.10.2010, 00:21
Re: Silenced Pistol Speed Checker - by Ritchie999 - 25.10.2010, 00:32
Re: Silenced Pistol Speed Checker - by WillyP - 25.10.2010, 00:53
Re: Silenced Pistol Speed Checker - by Ritchie999 - 25.10.2010, 01:00
Re: Silenced Pistol Speed Checker - by Ritchie999 - 25.10.2010, 15:38
Re: Silenced Pistol Speed Checker - by FujiNNN - 25.10.2010, 16:08
Re: Silenced Pistol Speed Checker - by Calgon - 25.10.2010, 16:11
Re: Silenced Pistol Speed Checker - by Ritchie999 - 25.10.2010, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)