©Ded_Fedot
КГБ
- 2,139
- 1,263
CLEO:{$CLEO} {$NOSOURCE} 0000: NOP repeat wait 0 until SAMP.Available() thread "CarBoom" 0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}CarBoom by Mikha Mikhin activated!" 0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}Введи {08457e}/boom {926eae}для активации" 0B34: samp register_client_command "boom" to_label @boom :1 wait 10 if 31@ == 1 then if and 056D: actor $PLAYER_ACTOR defined Actor.Driving($PLAYER_ACTOR) then 30@ = Actor.CurrentCar($PLAYER_ACTOR) 0224: set_car 30@ health_to 199 0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}БУУУМ! Деактивирован!" wait 1000 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 25@ 26@ 27@ 31@ = 0 else Actor.StorePos($PLAYER_ACTOR, 25@, 26@, 27@) end end jump @1 :boom 0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}Активирован!" 31@ = 1 SAMP.CmdRet()
Сократил до такого кода. Ничего не изменилось. При вводе /boom крашит.
CLEO:
{$CLEO}
{$NOSOURCE}
0000: NOP
repeat
wait 0
until SAMP.Available()
0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}CarBoom by Mikha Mikhin activated!" -1
0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}Введи {08457e}/boom {926eae}для активации" -1
0B34: samp register_client_command "boom" to_label @boom
while true
wait 0
if
4@ == 1
then
if
Actor.Driving($PLAYER_ACTOR)
then
8@ = Actor.CurrentCar($PLAYER_ACTOR)
0224: set_car 8@ health_to 199
0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}БУУУМ! Деактивирован!" -1
wait 1000
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 5@ 6@ 7@
4@ = 0
else
Actor.StorePos($PLAYER_ACTOR, 5@, 6@, 7@)
end
end
end
:boom
0AF8: samp add_message_to_chat "{00FF00}[CarBoom] {926eae}Активирован!" -1
4@ = 1
SAMP.CmdRet()