CLEO Help [CLEO Help] ID and players "command"

CLEO related
Status
Not open for further replies.

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
So i've seen that SadlerBomber or someCLEOS that works when type a name or an ID of a player . I didn't understand how that work to get players data , maybe ?  :youdontsay:

-Can you show me the way it works or else an Example, pls ?  :yuno:

-Thank you very much for your help.
 

PopandaulX

Active member
Joined
Jul 15, 2013
Messages
189
Reaction score
1
Code:
0B34: samp register_client_command "id" to_label [member=4866]test[/member]

while true
wait 0
end

:test
wait 0
0B35: samp 1@ = get_last_command_params
0AD4: 4@ = scan_string 1@ format "%d" 1@
0B20: samp 2@ = actor_handle_by_samp_player_id 1@ 
//OR
0AFF: samp 2@ = car_handle_by_samp_vehicle_id 1@
//Now you have actor_handle or vehicle_handle and you can type the code.
Samp.CmdRet()
 
Status
Not open for further replies.
Top