speed gun filterscript problem - 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: speed gun filterscript problem (
/showthread.php?tid=186323)
speed gun filterscript problem -
WillyP - 28.10.2010
hey guys, i made a filterscript where if the person aims at a vehicle, it would return the speed of the closest vehicle.
at the minute im using key_fire to initialize it, but it doesnt work.
heres the code:
http://pastebin.com/G2cZLUH4
thanks
Re: speed gun filterscript problem -
DeathOnaStick - 28.10.2010
Quote:
Originally Posted by [FU]Victious
hey guys, i made a filterscript where if the person aims at a vehicle, it would return the speed of the closest vehicle.
at the minute im using key_fire to initialize it, but it doesnt work.
heres the code:
http://pastebin.com/G2cZLUH4
thanks
|
Ofcourse it does not work. You would need to fire at a vehicle to get the speed. Try with KEY_HANDBRAKE or 128.
Re: speed gun filterscript problem -
Las Venturas CNR - 28.10.2010
Quote:
Originally Posted by DeathOnaStick
Ofcourse it does not work. You would need to fire at a vehicle to get the speed. Try with KEY_HANDBRAKE or 128.
|
Yes, you will need to fine something else besides "KEY_FIRE", because you would need to
fire at it for the gametext/ textdraw to show up.
Key list:
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Re: speed gun filterscript problem -
WillyP - 28.10.2010
Quote:
Originally Posted by Las Venturas CNR
|
yeah i have, i think ill just release it anyway