- 331
- 35
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R2
- 0.3.7-R3
- 0.3.7-R4
Tram:
{$CLEO .cs}
{NOSOURCE}
//-------------MAIN---------------
0000: NOP
wait 0
Model.Load(#TRAM)
038B: load_requested_models
:NONAME_13
wait 0
if
Model.Available(#TRAM)
else_jump @NONAME_13
:NONAME_33
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @NONAME_33
wait 1000
06D8: $TRAIN = create_train_at -2006.57 126.842 27.5391 type 9 direction 1
06DD: set_train $TRAIN speed 0.0
06DC: set_train $TRAIN acc 0.0
06D7: enable_train_traffic 9000
wait 1000
jump @NONAME_119
:NONAME_119
wait 0
if and
0203: actor $PLAYER_ACTOR near_car $TRAIN radius 8.0 8.0 flag 0 on_foot
0AB0: key_pressed 13
else_jump @NONAME_168
05CB: AS_actor $PLAYER_ACTOR enter_car $TRAIN as_driver -1 ms
:NONAME_168
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 104
else_jump @NONAME_205
06DC: set_train $TRAIN acc 35.0
:NONAME_205
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 98
else_jump @NONAME_242
06DC: set_train $TRAIN acc -35.0
:NONAME_242
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 101
else_jump @NONAME_289
06DD: set_train $TRAIN speed 0.0
06DC: set_train $TRAIN acc 0.0
:NONAME_289
wait 0
if
0981: train $TRAIN wrecked
else_jump @NONAME_119
Car.RemoveReferences($TRAIN)
jump @NONAME_321
:NONAME_321
wait 1000
06D8: $TRAIN = create_train_at -2006.57 126.842 27.5391 type 8 direction 1
06DD: set_train $TRAIN speed 0.0
06DC: set_train $TRAIN acc 0.0
06D7: enable_train_traffic 9000
wait 1000
jump @NONAME_387
:NONAME_387
wait 0
if and
0203: actor $PLAYER_ACTOR near_car $TRAIN radius 8.0 8.0 flag 0 on_foot
0AB0: key_pressed 13
else_jump @NONAME_436
05CB: AS_actor $PLAYER_ACTOR enter_car $TRAIN as_driver -1 ms
:NONAME_436
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 104
else_jump @NONAME_473
06DC: set_train $TRAIN acc 35.0
:NONAME_473
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 98
else_jump @NONAME_510
06DC: set_train $TRAIN acc -35.0
:NONAME_510
wait 0
if and
not Actor.InCar($PLAYER_ACTOR, $TRAIN)
0AB0: key_pressed 101
else_jump @NONAME_557
06DD: set_train $TRAIN speed 0.0
06DC: set_train $TRAIN acc 0.0
:NONAME_557
wait 0
if
0981: train $TRAIN wrecked
else_jump @NONAME_387
Car.RemoveReferences($TRAIN)
jump @NONAME_33
koleso:
{$CLEO .CS}
{$NOSOURCE}
//-------------MAIN---------------
0662: NOP
24@ = 0
thread 'KOLESO'
:KOLESO_76
wait 2000
:KOLESO_81
wait 200
if
Player.Defined($PLAYER_CHAR)
else_jump @KOLESO_76
09E8: 7@ = actor $PLAYER_ACTOR active_interior
if and
$ONMISSION == 0
7@ == 0
else_jump @KOLESO_76
if and
24@ == 0
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 389.773 -2028.47 7.8301 radius 220.0 220.0 220.0
else_jump @KOLESO_1030
6@ = Object.Create(18657, 389.773, -2028.47, 13.0047)
0453: set_object 6@ XY_rotation 0.0 0.0 angle 90.0
Model.Load(18657)
Model.Load(3752)
038B: load_requested_models
wait 100
Object.StorePos(6@, 3@, 4@, 5@)
0@ = 0.0
02F7: 1@ = sine 0@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 0@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
10@ = Object.Init(3752, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
15@ = Object.Init(3752, 3@, 8@, 9@)
wait 0
20@ = 36.0
02F7: 1@ = sine 20@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 20@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
11@ = Object.Init(3752, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
16@ = Object.Init(3752, 3@, 8@, 9@)
wait 0
21@ = 72.0
02F7: 1@ = sine 21@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 21@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
12@ = Object.Init(3752, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
17@ = Object.Init(3752, 3@, 8@, 9@)
wait 0
22@ = 108.0
02F7: 1@ = sine 22@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 22@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
13@ = Object.Init(3752, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
18@ = Object.Init(3752, 3@, 8@, 9@)
wait 0
23@ = 144.0
02F7: 1@ = sine 23@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 23@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
14@ = Object.Create(3752, 3@, 8@, 9@)
Object.PutAt(14@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
19@ = Object.Init(3752, 3@, 8@, 9@)
24@ = 1
Model.Destroy(18657)
Model.Destroy(3752)
:KOLESO_1030
if and
24@ == 1
80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 389.773 -2028.47 7.8301 radius 220.0 220.0 220.0
else_jump @KOLESO_1202
Object.Destroy(6@)
Object.Destroy(10@)
Object.Destroy(11@)
Object.Destroy(12@)
Object.Destroy(13@)
Object.Destroy(14@)
Object.Destroy(15@)
Object.Destroy(16@)
Object.Destroy(17@)
Object.Destroy(18@)
Object.Destroy(19@)
Object.RemoveReferences(6@)
Object.RemoveReferences(10@)
Object.RemoveReferences(11@)
Object.RemoveReferences(12@)
Object.RemoveReferences(13@)
Object.RemoveReferences(14@)
Object.RemoveReferences(15@)
Object.RemoveReferences(16@)
Object.RemoveReferences(17@)
Object.RemoveReferences(18@)
Object.RemoveReferences(19@)
24@ = 0
:KOLESO_1202
if
0102: actor $PLAYER_ACTOR in_sphere 379.3997 -2020.752 7.8301 radius 1.2 1.2 15.0 sphere 1 stopped_on_foot
else_jump @KOLESO_2304
if
Player.Money($PLAYER_CHAR) > 24
else_jump @KOLESO_2304
Actor.Angle($PLAYER_ACTOR) = 270.0
Actor.PutAt($PLAYER_ACTOR, 379.3997, -2020.752, 6.8301)
0812: AS_actor $PLAYER_ACTOR perform_animation "ATM" IFP_file "PED" 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time 2000 // versionB
Player.Money($PLAYER_CHAR) += -25
wait 3000
fade 0 1500
wait 1700
Object.StorePos(15@, 3@, 4@, 5@)
4@ -= 0.4
5@ -= 2.5
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
Actor.Angle($PLAYER_ACTOR) = 180.0
fade 1 1500
wait 3000
0@ = 0.0
20@ = 36.0
21@ = 72.0
22@ = 108.0
23@ = 144.0
:KOLESO_1473
wait 0
Object.StorePos(6@, 3@, 4@, 5@)
0@ += 0.2
20@ += 0.2
21@ += 0.2
22@ += 0.2
23@ += 0.2
0453: set_object 6@ XY_rotation 0.0 0@ angle 90.0
02F7: 1@ = sine 0@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 0@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
Object.PutAt(10@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
Object.PutAt(15@, 3@, 8@, 9@)
8@ -= 0.3
9@ -= 2.5
Actor.PutAt($PLAYER_ACTOR, 3@, 8@, 9@)
02F7: 1@ = sine 20@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 20@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
Object.PutAt(11@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
Object.PutAt(16@, 3@, 8@, 9@)
02F7: 1@ = sine 21@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 21@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
Object.PutAt(12@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
Object.PutAt(17@, 3@, 8@, 9@)
02F7: 1@ = sine 22@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 22@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
Object.PutAt(13@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
Object.PutAt(18@, 3@, 8@, 9@)
02F7: 1@ = sine 23@ // (float)
1@ *= 11.7
02F6: 2@ = cosine 23@ // (float)
2@ *= 11.7
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
005B: 8@ += 2@ // (float)
005B: 9@ += 1@ // (float)
Object.PutAt(14@, 3@, 8@, 9@)
0087: 8@ = 4@ // (float)
0087: 9@ = 5@ // (float)
0063: 8@ -= 2@ // (float)
0063: 9@ -= 1@ // (float)
Object.PutAt(19@, 3@, 8@, 9@)
0@ >= 720.0
else_jump @KOLESO_1473
wait 1000
fade 0 1500
wait 1700
Actor.PutAt($PLAYER_ACTOR, 387.4263, -2028.47, 6.8359)
Actor.Angle($PLAYER_ACTOR) = 90.0
fade 1 1500
:KOLESO_2304
jump @KOLESO_81
end_thread
на серверах с плохим античитом работает хорошо, а вот где хороший античит стоит там кикает когда из обьекта вылезаешь,
если в виде маппинга зделать без скрипта, то работать будет везде, а если скриптами активировать то только на нубо рп работать будет.
Последнее редактирование: