rataveveroi
Member
- Joined
- Jul 12, 2017
- Messages
- 9
- Reaction score
- 0
i got a script from someone and i try to compile it,but i get a error:Unknown directive samp.Available().
This is the cleo,if you make the .txt be compiled please send here the .cs file
This is the code
{$CLEO}
0000:
repeat
wait 0
while samp.Available()
0661: NOP "hello odmen arizona rp"
0661: NOP "if you smotrish this"
0661: NOP "then you petuh"
0661: NOP "end delat` eto"
chatmsg "[CarSlapper] {ffffff}facut de ratoiul thau preferat pentru {ff0000}bugged/b-zone/ruby/og-times {ffffff}functioneaza!" 0x59aee7
0B34: samp register_client_command "cs" to_label @main
wait 1500
0BE1: raknet setup_outcoming_rpc_hook @damage_on
0bde: 0
:main
0B35: samp 0@ = get_last_command_params
if 0AD4: 1@ = scan_string 0@ format "%d" 2@
then
if call @Driver 1 $PLAYER_ACTOR
then
if and
0B23: samp is_player_connected 2@
8B5C: samp is_player 2@ not paused
then
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
if 056D: actor 3@ defined
then
0BE1: raknet setup_outcoming_rpc_hook @damage_off
04C4: store_coords_to 4@ 5@ 6@ from_actor 3@ with_offset 0.1 0.1 -0.4
call @SendInCarData 3 4@ 5@ 6@
alloc 11@ 25
0B36: samp 11@ = get_player_nickname 2@
chatmsg "[CarSlapper] {ffc000}%s {ffffff}??????" 0xff5000 11@
free 11@
SAMP.CmdRet()
else
chatmsg "[CarSlapper] {ffffff}????? ??? ???? ??????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}????? ?? ?????????/?? ?????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}?? ?????? ???? ? ??????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}??????????? /cs [playerID]" 0xff5000
SAMP.CmdRet()
end
:SendInCarData
0B2B: samp 3@ = get_player_id_by_actor_handle $PLAYER_ACTOR
alloc 4@ 67
0BBB: samp store_player 3@ incar_data 4@
0C0D: struct 4@ offset 24 size 4 = 0@
0C0D: struct 4@ offset 28 size 4 = 1@
0C0D: struct 4@ offset 32 size 4 = 2@
0C0D: struct 4@ offset 36 size 4 = 0.0
0C0D: struct 4@ offset 40 size 4 = 0.0
0C0D: struct 4@ offset 44 size 4 = 15.0
0BC1: samp send_incar_data 4@
free 4@
ret 0
river
if Actor.Driving(0@)
then
1@ = Actor.CurrentCar(0@)
046C: 2@ = car 1@ driver
if 003B: 0@ == 2@ // (int)
then
return_true
else
return_false
end
end
ret 0
:damage_off
0BE5: raknet 11@ = get_hook_param 1
if or
11@ == 106
11@ == 115
11@ == 136
then
0BE0: raknet hook_ret 0
end
0BE0: raknet hook_ret 1
:damage_on
0BE0: raknet hook_ret 1
This is the cleo,if you make the .txt be compiled please send here the .cs file
This is the code
{$CLEO}
0000:
repeat
wait 0
while samp.Available()
0661: NOP "hello odmen arizona rp"
0661: NOP "if you smotrish this"
0661: NOP "then you petuh"
0661: NOP "end delat` eto"
chatmsg "[CarSlapper] {ffffff}facut de ratoiul thau preferat pentru {ff0000}bugged/b-zone/ruby/og-times {ffffff}functioneaza!" 0x59aee7
0B34: samp register_client_command "cs" to_label @main
wait 1500
0BE1: raknet setup_outcoming_rpc_hook @damage_on
0bde: 0
:main
0B35: samp 0@ = get_last_command_params
if 0AD4: 1@ = scan_string 0@ format "%d" 2@
then
if call @Driver 1 $PLAYER_ACTOR
then
if and
0B23: samp is_player_connected 2@
8B5C: samp is_player 2@ not paused
then
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
if 056D: actor 3@ defined
then
0BE1: raknet setup_outcoming_rpc_hook @damage_off
04C4: store_coords_to 4@ 5@ 6@ from_actor 3@ with_offset 0.1 0.1 -0.4
call @SendInCarData 3 4@ 5@ 6@
alloc 11@ 25
0B36: samp 11@ = get_player_nickname 2@
chatmsg "[CarSlapper] {ffc000}%s {ffffff}??????" 0xff5000 11@
free 11@
SAMP.CmdRet()
else
chatmsg "[CarSlapper] {ffffff}????? ??? ???? ??????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}????? ?? ?????????/?? ?????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}?? ?????? ???? ? ??????" 0xff5000
SAMP.CmdRet()
end
else
chatmsg "[CarSlapper] {ffffff}??????????? /cs [playerID]" 0xff5000
SAMP.CmdRet()
end
:SendInCarData
0B2B: samp 3@ = get_player_id_by_actor_handle $PLAYER_ACTOR
alloc 4@ 67
0BBB: samp store_player 3@ incar_data 4@
0C0D: struct 4@ offset 24 size 4 = 0@
0C0D: struct 4@ offset 28 size 4 = 1@
0C0D: struct 4@ offset 32 size 4 = 2@
0C0D: struct 4@ offset 36 size 4 = 0.0
0C0D: struct 4@ offset 40 size 4 = 0.0
0C0D: struct 4@ offset 44 size 4 = 15.0
0BC1: samp send_incar_data 4@
free 4@
ret 0
river
if Actor.Driving(0@)
then
1@ = Actor.CurrentCar(0@)
046C: 2@ = car 1@ driver
if 003B: 0@ == 2@ // (int)
then
return_true
else
return_false
end
end
ret 0
:damage_off
0BE5: raknet 11@ = get_hook_param 1
if or
11@ == 106
11@ == 115
11@ == 136
then
0BE0: raknet hook_ret 0
end
0BE0: raknet hook_ret 1
:damage_on
0BE0: raknet hook_ret 1