Code:
{$CLEO}
thread "Ladder Spawner"
repeat
wait 0
until SAMP.Available()
0B34: samp register_client_command "lsp" to_label @toggle
while true
wait 0
if
19@ == 1
then
if and
8B21: not samp is_chat_not_opened
0AB0: 54
then
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
4@ = Actor.Angle($PLAYER_ACTOR)
3@ -= 1.0
5@ = Object.Create(1437, 1@, 2@, 3@)
Object.Angle(5@) = 4@
0453: set_object 5@ XYZ_rotation 30 0.0 0.0
end
end
end
:toggle
0B12: 19@ = 19@ XOR 1
if
19@ == 1
then
chatmsg "LADDER SPAWNER: {FFFF00}ON" color 0xFFFFFF
else
chatmsg "LADDER SPAWNER: {FF3333}OFF" color 0xFFFFFF
end
SAMP.CmdRet()
Object angle doesn't following Actor angle and object rotate not changed, how to fix it?