Тема: RakSAMP Lite
Показать сообщение отдельно

  #10  
Старый 12.04.2024, 22:02
vaguiners
Новичок
Регистрация: 08.11.2016
Сообщений: 12
С нами: 5005812

Репутация: 53
По умолчанию

Lua:





Код:
newTask
(
function
(
)
while
true
do
wait
(
5
)
local
bs
=
bitStream
.
new
(
)
bs
:
writeBool
(
false
)
-- true take damage from target false give damage to target
bs
:
writeUInt16
(
276
)
-- target id
bs
:
writeFloat
(
0
)
-- damage amount
bs
:
writeUInt32
(
0
)
-- weapon id (0 fist)
bs
:
writeUInt32
(
1
)
-- body part
bs
:
sendRPC
(
115
)
bs
:
reset
(
)
end
end
)


RPC List
 
Ответить с цитированием