- Brx100Mensagens Nível 1
- Mensagens : 1
Reputação : 0
Desde : 03/10/2017
Descrição: Bom, tentei de tudo e vi tutoriais e não consigo entender nada, vim então pedi para me ajudarem a editar um mod cleo já feito.
Tá ai:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "MADH_SAMP"
:MADH_SAMP_13
wait 0
if and
Player.Defined($PLAYER_CHAR)
0AB0: key_pressed 17
0AB0: key_pressed 72
jf @MADH_SAMP_13
wait 0
Model.Load(#M4)
if and
Model.Available(#M4)
044B: actor $PLAYER_ACTOR on_foot
jf @MADH_SAMP_78
jump @MADH_SAMP_13
:MADH_SAMP_78
wait 0
$HELI = Actor.CurrentCar($PLAYER_ACTOR)
if or
Car.Id($HELI) == #MAVERICK
Car.Id($HELI) == #POLMAV
jf @MADH_SAMP_78
wait 0
fade 0 500
wait 500
0633: AS_actor $PLAYER_ACTOR exit_car
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, AK47, 60000)
wait 2000
06A7: put_actor $PLAYER_ACTOR into_turret_on_car $HELI at_car_offset 1.25 1.4 0.1 position 1 shooting_angle 100.0 120.0 with_weapon 30
wait 500
fade 1 500
:MADH_SAMP_196
wait 0
if
Actor.Dead($PLAYER_ACTOR)
jf @MADH_SAMP_228
0465: remove_actor $PLAYER_ACTOR from_turret_mode
jump @MADH_SAMP_13
:MADH_SAMP_228
wait 0
if and
0AB0: key_pressed 17
0AB0: key_pressed 71
jf @MADH_SAMP_196
0465: remove_actor $PLAYER_ACTOR from_turret_mode
0430: put_actor $PLAYER_ACTOR into_car $HELI passenger_seat 0
jump @MADH_SAMP_13
Tá ai:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread "MADH_SAMP"
:MADH_SAMP_13
wait 0
if and
Player.Defined($PLAYER_CHAR)
0AB0: key_pressed 17
0AB0: key_pressed 72
jf @MADH_SAMP_13
wait 0
Model.Load(#M4)
if and
Model.Available(#M4)
044B: actor $PLAYER_ACTOR on_foot
jf @MADH_SAMP_78
jump @MADH_SAMP_13
:MADH_SAMP_78
wait 0
$HELI = Actor.CurrentCar($PLAYER_ACTOR)
if or
Car.Id($HELI) == #MAVERICK
Car.Id($HELI) == #POLMAV
jf @MADH_SAMP_78
wait 0
fade 0 500
wait 500
0633: AS_actor $PLAYER_ACTOR exit_car
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, AK47, 60000)
wait 2000
06A7: put_actor $PLAYER_ACTOR into_turret_on_car $HELI at_car_offset 1.25 1.4 0.1 position 1 shooting_angle 100.0 120.0 with_weapon 30
wait 500
fade 1 500
:MADH_SAMP_196
wait 0
if
Actor.Dead($PLAYER_ACTOR)
jf @MADH_SAMP_228
0465: remove_actor $PLAYER_ACTOR from_turret_mode
jump @MADH_SAMP_13
:MADH_SAMP_228
wait 0
if and
0AB0: key_pressed 17
0AB0: key_pressed 71
jf @MADH_SAMP_196
0465: remove_actor $PLAYER_ACTOR from_turret_mode
0430: put_actor $PLAYER_ACTOR into_car $HELI passenger_seat 0
jump @MADH_SAMP_13
Pelo que eu entendi este mod anexa um char ao veiculo com uma arma, mas qual seria a correção a ser feita? Se bem que não entendo de comandos próprios para o samp.
Caso queira apenas mudar onde o char será fixado é só mudar alguns números nesta linha
Caso queira apenas mudar onde o char será fixado é só mudar alguns números nesta linha
- Código:
06A7: put_actor $PLAYER_ACTOR into_turret_on_car $HELI at_car_offset 1.25 1.4 0.1 position 1 shooting_angle 100.0 120.0 with_weapon 30
↓
at_car_offset 1.25 1.4 0.1
- CloudScripter CLEO - Avançado
- Nick anterior : Israel
Título : Baiano
Mensagens : 858
Reputação : 138
Desde : 22/09/2015
O certo seria refazer isso aí, esse script tá bem ruim: thread name com mais de 7 letras, thread name desnecessário, variáveis globais, waits sem sentido, etc.
______________________________
Everyone gonna remember my name !
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum
|
|