:CmdHook
// Use %d on the string if you want to write/read an integer valued variable
// Use %f on the string if you want to write/read an float(with dot precision unit) valued variable
0B35: samp 1@ = get_last_command_params
If 0AD4: 1@ = scan_string 1@ format "%d" 0@ // 0@ now contains the value converted from the string
Then chatmsg "value: %d" -1 0@
Else chatmsg "you didn't type a number" -1
End
0B43: samp cmd_ret