CLEO Help Get race checkpoint coordinates

CLEO related
Status
Not open for further replies.

ShalltearB

New member
Joined
May 5, 2020
Messages
2
Reaction score
0
Location
Venezuela
Hi i wanted to ask if there is any way for a script to check if there is a race checkpoint at the indicated coordinates, or simply tell me the coordinates of the current race checkpoint so that it executes an action according to the coordinates, sorry for my bad english
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
Use %f, %d etc like this.
Code:
0AF8: samp add_message_to_chat "%f %f %f" color -1 0@ 1@ 2@
// variables go in corresponding order of %f %f %f = 0@ 1@ 2@
So your message would be like this.
Code:
0AF8: samp add_message_to_chat "{27D0F2}Checkpoint{F22727}1! (%f %f %f)" color -1 0@ 1@ 2@
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
@ShalltearB Okay so you obviously have the snippet from Zin. You can show the coordinates using 'chatmsg "%f %f %f" 1@ 2@ 3@'. Just so you understand, %f represents float numbers (such as 2.1, 3.4 etc.), %d represents whole numbers (such as 1, 2 etc.) and theres many more. All coordinates in SA:MP are floats (ex. 2.0037) meaning you will need to use %f.
 
Status
Not open for further replies.
Top