Help Cleo Command help

webi

New member
Joined
Jul 7, 2021
Messages
3
Reaction score
0
Location
chisinau
I want to create a CLEO script for a command or a dialog box (eg: /fine) that accepts three parameters: ID, amount of the fine, and reason and the response should be "Player Test (id: 1) "was fined $10,000, reason: speed limit"
Who can help me with the code?...
 

webi

New member
Joined
Jul 7, 2021
Messages
3
Reaction score
0
Location
chisinau
{$CLEO}

0662: ""
thread ""
repeat
wait 1500
until Samp.Available()

0B34: samp register_client_command "fine" to_label @jos
0AB1: call_scm_func @chatmsg 0

:cmd_39
wait 0
jump @cmd_39


:jos
SAMP.IsCommandTyped(20@) // Verifică dacă o comandă este tastată
if
0AD4: 20@ = scan_string 20@ format "%d %d ~s" 21@ 22@ 23@
then
0B36: samp 1@ = get_player_nickname 21@
0AF9: samp say_msg "FINE: Player %s [ID: %d] was fined %d for: %s." 1@ 21@ 22@ 23@
end
SAMP.CmdRet()



//----------------------------------------------------------------------------------------------\
:chatmsg
0AA2: 0@ = load_library "samp.dll" // IF and SET
0085: 1@ = 0@ // (int)
1@ += 2203876
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1
0085: 2@ = 0@ // (int)
2@ += 409616
0AB2: ret 0
 
Top