- 183
- 21
Ребята как добавить ещё координаты?
Код:{$CLEO .cs} 0000: :activation_goto_point wait 0 if and Player.Defined($PLAYER_ACTOR) 0ab0: 49 // Кнопка 1 else_jump @end_goto_point wait 300 goto @goto_point :goto_point wait 0 05D3: AS_actor $PLAYER_ACTOR goto_point 1755.1747 -1904.0111 13.5641 mode 4 time 1000 ms if or 00EC: actor $PLAYER_ACTOR sphere 0 near_point 1755.1747 -1904.0111 13.5641 radius 1.5 1.5 0ab0: 52 // Кнопка 4 else_jump @goto_point Actor.StorePos($PLAYER_ACTOR, 1@ 2@ 3@) 05D3: AS_actor $PLAYER_ACTOR goto_point 1@ 2@ 3@ mode 4 time 1000 ms 0AF8: samp add_message_to_chat "Работа скрипта остановлена, либо актёр на указанных координатах." color -1 goto @end_goto_point :end_goto_point goto @activation_goto_point
Как-то так
Код:
{$CLEO .cs}
0000:
:activation_goto_point
wait 0
if and
Player.Defined($PLAYER_ACTOR)
0ab0: 49 // Кнопка 1
else_jump @end_goto_point
wait 300
goto @goto_point
:goto_point
wait 0
05D3: AS_actor $PLAYER_ACTOR goto_point 1755.1747 -1904.0111 13.5641 mode 4 time 1000 ms
if or
00EC: actor $PLAYER_ACTOR sphere 0 near_point 1755.1747 -1904.0111 13.5641 radius 1.5 1.5
0ab0: 52 // Кнопка 4
else_jump @goto_point
Actor.StorePos($PLAYER_ACTOR, 1@ 2@ 3@)
05D3: AS_actor $PLAYER_ACTOR goto_point 1@ 2@ 3@ mode 4 time 1000 ms
:goto_point1
wait 0
05D3: AS_actor $PLAYER_ACTOR goto_point 2222 2222 13.5641 mode 4 time 1000 ms
if or
00EC: actor $PLAYER_ACTOR sphere 0 near_point 2222 2222 13.5641 radius 1.5 1.5
0ab0: 52 // Кнопка 4
else_jump @goto_point1
Actor.StorePos($PLAYER_ACTOR, 1@ 2@ 3@)
05D3: AS_actor $PLAYER_ACTOR goto_point 1@ 2@ 3@ mode 4 time 1000 ms
:goto_point2
wait 0
05D3: AS_actor $PLAYER_ACTOR goto_point 1111 1111 13.5641 mode 4 time 1000 ms
if or
00EC: actor $PLAYER_ACTOR sphere 0 near_point 1111 1111 13.5641 radius 1.5 1.5
0ab0: 52 // Кнопка 4
else_jump @goto_point2
Actor.StorePos($PLAYER_ACTOR, 1@ 2@ 3@)
05D3: AS_actor $PLAYER_ACTOR goto_point 1@ 2@ 3@ mode 4 time 1000 ms
0AF8: samp add_message_to_chat "Работа скрипта остановлена, либо актёр на указанных координатах." color -1
goto @end_goto_point
:end_goto_point
goto @activation_goto_point