{$CLEO .cs}
{$INCLUDE SF}
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
0BE1: raknet setup_outcoming_rpc_hook @out_rpc
0B34: samp register_client_command "cmd" to_label @cmd
while true
wait 0
end
:cmd
0B12: 15@ = 15@ XOR 1
if 15@ == 1
then
0ACD: show_text_highpriority "ON" time 1337
else
0ACD: show_text_highpriority "OFF" time 1337
end
samp.CmdRet()
:out_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if and
15@ == 1
0@ == RPC_PICKEDUPPICKUP
then
0BE0: raknet hook_ret false
else
0BE0: raknet hook_ret true
end