Код:{$CLEO} 0000: :samp wait 0 0AFA: is_samp_available jf @samp :2 wait 0 0256: player $PLAYER_CHAR defined jump @1 jf @3 :1 wait 2000 048F: actor $PLAYER_ACTOR remove_weapons jump @2 :3 wait 2000 048F: actor $PLAYER_ACTOR remove_weapons jump @2
{$CLEO}
0000:
@3 = samp.RegisterClientCommand("rw")
:samp
wait 0
0AFA: is_samp_available
0256: player $PLAYER_CHAR defined
jf @samp
:3
wait 2000
048F: actor $PLAYER_ACTOR remove_weapons
samp.CmdRet()
а что должно произойти?ничего не происходит
{$CLEO}
0000:
@0 = samp.RegisterClientCommand("rw")
:samp
wait 0
0AFA: is_samp_available
jf @samp
:loop
wait 0
goto @loop
:0
gosub @2
samp.CmdRet()
:2
wait 0
0256: player $PLAYER_CHAR defined
jump @1
jf @3
:1
wait 2000
048F: actor $PLAYER_ACTOR remove_weapons
:3
wait 2000
048F: actor $PLAYER_ACTOR remove_weapons
а код из твоего исходника у тебя работал?Короче мне надо чтобы при спавне автоматически выбрасывалось все оружие
{$CLEO}
0000:
while not SAMP.Available()
wait 400
end
while true
wait 0
repeat
wait 0
until 0B61: samp is_local_player_spawned
wait 2000
048F: actor $PLAYER_ACTOR remove_weapons
while true
wait 0
if Actor.Dead($PLAYER_ACTOR)
then
wait 2000
048F: actor $PLAYER_ACTOR remove_weapons
end
wait 0
repeat
wait 0
until Actor.Dead($PLAYER_ACTOR)
end
end
что это блятьэта?CLEO:{$CLEO} 0000: @3 = samp.RegisterClientCommand("rw") :samp wait 0 0AFA: is_samp_available 0256: player $PLAYER_CHAR defined jf @samp :3 wait 2000 048F: actor $PLAYER_ACTOR remove_weapons samp.CmdRet()
{$CLEO}
0BE3: raknet setup_incoming_rpc_hook @iRPC
0B34: samp register_client_command "CMD" to_label @CMD
0BDE: pause_thread 0
:iRPC
IF 0039: 0@ == TRUE
THEN 0BE5: raknet 1@ = get_hook_param {PARAM_PACKETID}1
IF 0039: 1@ == {RPC_ScrGivePlayerWeapon}22
THEN 0BE0: raknet hook_ret FALSE
END
END
0BE0: raknet hook_ret TRUE
:CMD
0B12: 0@ = 0@ XOR 1
0B43: samp cmd_ret
Это говно а не кодУдаление оружия из рук
{$CLEO}
0BE3: raknet setup_incoming_rpc_hook @iRPC
0B34: samp register_client_command "CMD" to_label @CMD
0BDE: pause_thread 0
:iRPC
IF 0039: 0@ == TRUE
THEN 0BE5: raknet 1@ = get_hook_param {PARAM_PACKETID}1
IF 0039: 1@ == {RPC_ScrSetSpawnInfo}68
THEN
0BE5: raknet 1@ = get_hook_param {PARAM_BITSTREAM}0
0BF2: raknet 2@ = bit_stream 1@ get_read_offset
0BF1: raknet 3@ = bit_stream 1@ get_write_offset
0BED: raknet bit_stream 1@ set_read_offset 176
0BE7: raknet 4@ = bit_stream_read 1@ type {BS_TYPE_INT}3
0BE7: raknet 5@ = bit_stream_read 1@ type {BS_TYPE_INT}3
0BE7: raknet 6@ = bit_stream_read 1@ type {BS_TYPE_INT}3
0AF8: samp add_message_to_chat "%d %d %d" color 0xFFFFFF 4@ 5@ 6@
0BED: raknet bit_stream 1@ set_read_offset 2@
0BEC: raknet bit_stream 1@ set_write_offset 3@
END
END
0BE0: raknet hook_ret TRUE
:CMD
0B12: 0@ = 0@ XOR 1
0B43: samp cmd_ret