monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
It allows to register commands to labels in Cleo without Sampfuncs opcodes. Please check the github repository for the details, source and cleo examples. (It's easier to maintain when stuff is written once).
Essentially, this is functionality it brings to cleo:
Virus Total scan of samp_commands.asi
Credits/resources used:
0x688 - Do your own SA:MP command's. tutorial
Luchare's - SAMP-API
mod_s0beit_sa
springfield - SetText function (InputBox)
Essentially, this is functionality it brings to cleo:
Code:
0AB1: @register_commands_from_label 1 @cmd_store
while true
wait 0
end
:cmd_store
hex
">mycommand" 00 @my_1st_cmd
"*mycommand" 00 @my_2nd_cmd
00 // this 00 must be just before end
end
:my_1st_cmd
if 0AB1: @get_last_command_params 0 _returned_string 3@
then
0AD1: show_formatted_text_highpriority "my_1st_cmd params = ~G~%s" time 2000 3@
else
0AD1: show_formatted_text_highpriority "my_1st_cmd didn't have any params" time 2000
end
0AB1: @cmd_ret 0
Virus Total scan of samp_commands.asi
Credits/resources used:
0x688 - Do your own SA:MP command's. tutorial
Luchare's - SAMP-API
mod_s0beit_sa
springfield - SetText function (InputBox)
Attachments
Last edited: