Zin
Expert
- Joined
- Aug 1, 2013
- Messages
- 1,734
- Solutions
- 2
- Reaction score
- 117
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
repeat
wait 0
until samp.Available()
Dialog.Create(0@, "Zin's NOP Master")
Dialog.SetRECT(0@, 0, 290, 260, 290)
Dialog.AddCheckBox(0@, 1, "SetPos", 0, 0, 200, 40)
Dialog.AddCheckBox(0@, 2, "RemoveFromVeh", 0, 45, 200, 40)
Dialog.AddCheckBox(0@, 3, "EngineState", 0, 90, 200, 40)
Dialog.AddCheckBox(0@, 4, "Vehicle God", 0, 135, 200, 40)
Dialog.AddButton(0@, 5, "Close", 60, 240, 145, 20)
dialog.SetVisible(0@,0)
0B34: samp register_client_command "mcar" to_label @Noname_42
:SetPos
0B2E: 1@ = read_samp_memory 0x146e0 size 2
wait 0
if
Dialog.CheckBoxIsChecked(0@, 2)
THEN
0B2D: write samp_memory 0x146e0 value 0xC390 size 2
jump @RemovePlayer
ELSE
0B2E: 30@ = read_samp_memory 0x146e0 size 2
IF
30@ = 0xC390
jf @RemovePlayer
0B2D: write samp_memory 0x146e0 value 1@ size 2
jump @RemovePlayer
END
:RemovePlayer
0B2E: 1@ = read_samp_memory 0x1a4f0 size 2
wait 0
if
Dialog.CheckBoxIsChecked(0@, 1)
THEN
0B2D: write samp_memory 0x1a4f0 value 0xC390 size 2
jump @SetPos
ELSE
0B2E: 30@ = read_samp_memory 0x1a4f0 size 2
IF
30@ = 0xC390
jf @EngineState
0B2D: write samp_memory 0x1a4f0 value 1@ size 2
jump @EngineState
END
:EngineState
wait 0
if and
actor.Driving($PLAYER_ACTOR)
Dialog.CheckBoxIsChecked(0@, 3)
jf @CarGod
31@ = actor.CurrentCar($PLAYER_ACTOR)
0ABF: set_vehicle 31@ engine_state_to 1
jump @CarGod
:CarGod
wait 0
if and
actor.Driving($PLAYER_ACTOR)
Dialog.CheckBoxIsChecked(0@, 4)
jf @CLOSE
31@ = actor.CurrentCar($PLAYER_ACTOR)
car.SetImmunities(31@,1,1,1,1,1)
jump @CLOSE
:CLOSE
0B81: dialog 0@ pop_event_to 2@ control_id_to 3@
if and
3@ == 5 // ID
2@ == 257 // pressed
jf @SetPos
dialog.SetVisible(0@,0)
jump @SetPos
:Noname_42
Dialog.SetVisible(0@, 1)
SAMP.CmdRet()