CLEO Help Detect Another Player Vehicle Speed.

CLEO related
Status
Not open for further replies.

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


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
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,112
Solutions
5
Reaction score
878
Location
Lithuania
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


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
Any player?, be more specific...
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
268
Location
Pluto
I'd like to help though, but I have less knowledge on 0.3DL memory offsets, you're gonna need the following snippets:
  1. getplayeridbyactorhandle
  2. getchatcommand
 
Status
Not open for further replies.
Top