ha.sh
Active member
- Joined
- Nov 14, 2018
- Messages
- 66
- Reaction score
- 0
Hey, i need help for this code. How can i detect the another player vehicle speed when i spectate the player with this code?
SAMP 0.3dl
SAMP 0.3dl
C++:
{$CLEO .cs}
0000:
thread "$@wiieest$vehspeeddetector .cs"
wait 5000
while true
wait 0
if and
key_down 18
key_down 86
Actor.Driving($PLAYER_ACTOR)
then
repeat
0@ = Actor.CurrentCar($PLAYER_ACTOR)
wait 0
02E3: 5@ = car 0@ speed
0AD1: show_formatted_text_highpriority "~r~Speed:~w~ %d" time 500 5@
wait 0
until key_down 90
wait 1000
end
end