{$CLEO .cs}
0000:
wait 1750
repeat
wait 0
until 0B61: samp is_local_player_spawned
0BAC: samp 0@ = get_server_settings_ptr
const
fNameTagsDistance = 39
byteNoNametagsBehindWalls = 47
end // const
0A8E: 1@ = 0@ + fNameTagsDistance
0A8E: 2@ = 0@ + byteNoNametagsBehindWalls
//Default data
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1
0A8D: 4@ = read_memory 2@ size 1 virtual_protect 1
0B34: samp register_client_command "wh" to_label @cmd
while true
wait 0
end
:cmd
0B12: 5@ = 5@ XOR 1
if 5@ == 1
then
0A8C: write_memory 1@ size 4 value 1000.0 virtual_protect 1
0A8C: write_memory 2@ size 1 value 0 virtual_protect 1
else
0A8C: write_memory 1@ size 4 value 3@ virtual_protect 1
0A8C: write_memory 2@ size 1 value 4@ virtual_protect 1
end
0B43: samp cmd_ret