You are not logged in.
В общем, суть проблемки такова. Вот скрипт:
{$CLEO}
0000:
var
1@:Integer
2@:Integer
3@:Integer
4@:Integer
end
while true
wait 0
// if
// 80DF: not actor $PLAYER_ACTOR driving
// then
if and
0AFC: 0@ = player -1 targeted_actor //IF and SET
then
0226: 1@ = actor 0@ health
03F0: enable_text_draw 1
033F: set_text_draw_letter_size 0.4 1.1
081C: draw_text_outline 0 RGBA 0 0 0 255
if
1@ < 26
then
0340: set_text_draw_RGBA 255 0 0 255
else
if
1@ < 51
then
0340: set_text_draw_RGBA 255 128 0 255
else
if
1@ < 101
then
0340: set_text_draw_RGBA 0 255 0 255
else
0340: set_text_draw_RGBA 255 255 255 255
end
end
end
060D: draw_text_shadow 0 color_RGBA 0 0 0 255
0342: enable_text_draw_centered 1
045A: draw_text_1number 25.0 7.0 GXT 'NUMBER' number 1@
038E: draw_box_position 25.0 12.5 size 40.0 12.0 RGBA 0 0 0 127
if and
0AB0: 79 // O
1@ < 1000
then
2@ = 1000
2@ -= 1@
010B: 3@ = player $PLAYER_CHAR money
if
3@ >= 2@
then
4@ = 2@
4@ -= 2@
4@ -= 2@
0109: player $PLAYER_CHAR money += 4@
0223: set_actor 0@ health_to 1000
end
end
if and
0AB0: 80 // P
1@ < 500
then
2@ = 500
2@ -= 1@
2@ /= 2
010B: 3@ = player $PLAYER_CHAR money
if
3@ >= 2@
then
4@ = 2@
4@ -= 2@
4@ -= 2@
0109: player $PLAYER_CHAR money += 4@
0223: set_actor 0@ health_to 500
end
end
end
// end
endвсё замечательно работает, но до тех пор, пока игрок не сядет в машину. После выхода из машины не работает. Почему, и как это решить?
Проверка на машинность тоже не помогает
Last edited by WinuX (02-06-2010 20:58)
Offline
0AFC: 0@ = player -1 targeted_actor //IF and SET
почему -1, а не $PLAYER_CHAR или 0?
Offline
В SANO есть глюк с этим опкодом. Он получает targeted ped только от нулевой камеры. После смены видов происходит смена камеры, поэтому он перестает работать.
Используй 0AD2 из CLEO 4 и все будет ок.
Offline
Спасибо, вопрос закрыт
Last edited by WinuX (03-06-2010 14:00)
Offline