- Версия MoonLoader
- Другое
Lua:
if response.text:find('"online":%d+') then
online = response.text:match('"online":(%d+)')
sampAddChatMessage("onl "..online, -1)
end
if response.text:find('"playerid":%d+') then
plid = response.text:match('"playerid":(%d+)')
if plid == "0" and online == "0" then
sampAddChatMessage("не в сети ", -1)
else
sampAddChatMessage("в сети "..plid, -1)
end
end
в этой функции у меня получается если plid и online = 0, то выведет в сети или не в сети, но как мне подобное реализовать в sampShowDialog? мне нужно чтобы там по такому принципу выводилось