- 27
- 1
- Версия MoonLoader
- .026-beta
хотел сделать так, чтобы к челу с определенным айди в зоне стрима крепился текст, но ничего не случается
Lua:
for i = 0, sampGetMaxPlayerId() do
if sampIsPlayerConnected(i) then
local result, cped = sampGetCharHandleBySampPlayerId(i)
local plCol = '0xFF'..string.format('%06X', bit.band(sampGetPlayerColor(i), 0xFFFFFF))
if result then
if doesCharExist(cped) and isCharOnScreen(cped) then
if i == fix_var["fnum"] then
sampCreate3dText("Цель", plCol, 0, 1, 0, 100, true, i)
end
end
end
end
end