Полезный скрипт

ABSTRAKSHN

Участник
Автор темы
107
4
Версия SA-MP
  1. 0.3.7 (R1)
Хай ребята. Я тут недавно нашел старый КЛЕО скрипт. Работает криво... Но вся суть в том что, у меня крашит из-за него. Я обращаюсь тем людям, которое хорошо разбираются: Там скрипт небольшой, Если вы разбираетесь то прошу исправить краши и отправить мне. Спасибо ребятки за все и удачи)
{$CLEO}
1337: make_script_private 1
// http://vk.com/herrerkaa
// CLEO by Bladee Herrera
// all rights reserved ®

// константы
const
EVENT_CHECKBOX_CHANGED = 1025
EVENT_BUTTON_CLICKED = 257
end

repeat
wait 100
until SAMP.Available()

0B34: samp register_client_command "hskin" to_label @xor
chatmsg "[FPS UP] by Bladee Herrera loaded!" -1
call @get_screen_centre 2 dlg_sizeXY 125 225 returns 10@ 11@
0B80: dialog 15@ = create "FPS UP by Bladee"
0B84: dialog 15@ set_pos_XY 10@ 11@ size 230 280
0B83: dialog 15@ add_checkbox id 1 text "The Grove" pos_XY 60 35 size 150 20
0B83: dialog 15@ add_checkbox id 2 text "The Ballas" pos_XY 60 70 size 150 20
0B83: dialog 15@ add_checkbox id 3 text "The Aztec" pos_XY 60 105 size 150 20
0B83: dialog 15@ add_checkbox id 4 text "The Vagos" pos_XY 60 140 size 150 20
0B83: dialog 15@ add_checkbox id 5 text "The Rifa" pos_XY 60 175 size 150 20
0B82: dialog 15@ add_button id 6 text "Выключить" pos_XY 60 210 size 120 30
0B86: dialog 15@ set_visible 0
WHILE TRUE
WAIT 0
IF 28@ == 1
THEN
FOR 0@ = 0 TO 1001 | STEP = 1 |
IF 0B23: samp is_player_connected 0@
THEN
0B20: samp 1@ = actor_handle_by_samp_player_id 0@
IF 056D: actor 1@ defined
THEN
IF 02CB: actor 1@ bounding_sphere_visible
THEN
0665: get_actor 1@ model_to 13@
if and
20@ == 1
not 13@ == 105
not 13@ == 106
not 13@ == 107
then
009B: destroy_actor_instantly 1@
end
if and
20@ == 2
not 13@ == 102
not 13@ == 103
not 13@ == 104
then
009B: destroy_actor_instantly 1@
end
if and
20@ == 3
not 13@ == 114
not 13@ == 115
not 13@ == 116
then
009B: destroy_actor_instantly 1@
end
if and
20@ == 4
not 13@ == 108
not 13@ == 109
not 13@ == 110
then
009B: destroy_actor_instantly 1@
end
if and
20@ == 5
not 13@ == 173
not 13@ == 174
not 13@ == 175
then
009B: destroy_actor_instantly 1@
end
END
END
END
END
END
if 0B81: dialog 15@ pop_event_to 16@ control_id_to 17@
then
if 16@ == EVENT_BUTTON_CLICKED
then
if 17@ == 6
then
0AF8: samp add_message_to_chat "Скрипт был выключен." color -1
0B5D: samp toggle_cursor 0
0B86: dialog 15@ set_visible 0
018C: play_sound 1052 at 0.0 0.0 0.0
28@ = 0
end
end
if 16@ == EVENT_CHECKBOX_CHANGED
then
28@ = 1
if 17@ == 1
then
20@ = 1 // grove
if 0B92: dialog 15@ checkbox 17@ is_checked
then 0AF8: samp add_message_to_chat "{e76d07}[FPS UP] Скрыты все, кроме {1cce31}Grove Street" color -1
end
end
if 17@ == 2
then
20@ = 2 // ballas
if 0B92: dialog 15@ checkbox 17@ is_checked
then 0AF8: samp add_message_to_chat "{e76d07}[FPS UP] Скрыты все, кроме {ad07e7}Ballas Gang" color -1
end
end
if 17@ == 3
then
20@ = 3 // aztec
if 0B92: dialog 15@ checkbox 17@ is_checked
then 0AF8: samp add_message_to_chat "{e76d07}[FPS UP] Скрыты все, кроме {07d6e7}Aztecas Gang" color -1
end
end
if 17@ == 4
then
20@ = 4 // vagos
if 0B92: dialog 15@ checkbox 17@ is_checked
then 0AF8: samp add_message_to_chat "{e76d07}[FPS UP] Скрыты все, кроме {e7de07}Vagos Gang" color -1
end
end
if 17@ == 5
then
20@ = 5 // rifa
if 0B92: dialog 15@ checkbox 17@ is_checked
then 0AF8: samp add_message_to_chat "{e76d07}[FPS UP] Скрыты все, кроме {3979c1}Rifa Gang" color -1
end
end
end
END
if 27@ == 2
then
0B5D: samp toggle_cursor 1
0B86: dialog 15@ set_visible 1
27@ = 1
end
END

:GET_SCREEN_CENTRE
0B5A: get_screen_resolution 2@ 3@
0016: 2@ /= 2
0062: 2@ -= 0@
0016: 3@ /= 2
0062: 3@ -= 1@
ret 2 2@ 3@

:xor
0b12: 27@ = 27@ XOR 1
if 27@ == 1
then
27@ = 2
018C: play_sound 1052 at 0.0 0.0 0.0
else
0B5D: samp toggle_cursor 0
0B86: dialog 15@ set_visible 0
018C: play_sound 1052 at 0.0 0.0 0.0
038B: load_requested_models
end
SAMP.CmdRet()
Вот скрипт...
 

Вложения

  • test_fps.cs
    24.1 KB · Просмотры: 6