Скрипт отображает пинг над игроками (обновление медленное). Активация/деактивация: /gping.
Исходный код:
PHP:
{$CLEO .cs}
0662: NOP "CLEO : gPing"
0662: NOP "gcode: acheats.ru : blasthack.net"
thread "gping"
if
8AF7: get_samp_base_to 33@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
0AF8: samp add_message_to_chat "[gPing]: {EAEAEA}Введите {e86c7c}/gping{EAEAEA}, чтобы отобразить пинг над игроками." 0xe86c7c
0AF8: samp add_message_to_chat "[gPing]: {EAEAEA}Для {e86c7c}acheats.ru {EAEAEA}и {e86c7c}blasthack.net" 0xe86c7c
0B34: samp register_client_command "gping" to_label @gping
0AC8: 0@ = allocate_memory_size 4096
0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
while true
wait 0
while 30@ == 1
wait 0
for 29@ = 0 to 999
wait 0
if
003B: 29@ == 1@
then
Continue
end
0C0E: 28@ = array 0@ element 29@
if
0B46: samp 3d_text 28@ defined
then
0B45: samp destroy_3d_text 28@
end
if
0B23: samp is_player_connected 29@
then
if
0B20: samp 28@ = actor_handle_from_samp_playerid 29@
then
0B2A: samp 28@ = get_player_ping 29@
0AC8: 27@ = allocate_memory_size 32
0AD3: 27@ = format "Пинг: %d" 28@
0B44: samp 28@ = create_3d_text 27@ color 0xCCEAEAEA position 0.0 0.0 0.25 view_distance 300.0 show_behind_walls true attached_to_player 29@ attached_to_vehicle -1
0AC9: free_allocated_memory 27@
0C0F: array 0@ element 29@ = 28@
end
end
if
30@ == 0
then
Break
end
end
end
while 30@ == 0
wait 0
for 29@ = 0 to 999
wait 0
if
003B: 29@ == 1@
then
Continue
end
0C0E: 28@ = array 0@ element 29@
if
0B46: samp 3d_text 28@ defined
then
0B45: samp destroy_3d_text 28@
end
if
30@ == 1
then
Break
end
end
end
end
:gping
if
30@ == 1
then
30@ = 0
0AF8: samp add_message_to_chat "[gPing]: {EAEAEA}Деактивирован." 0xe86c7c
else
30@ = 1
0AF8: samp add_message_to_chat "[gPing]: {EAEAEA}Активирован." 0xe86c7c
end
0B43: samp cmd_ret