Advertisement
sheredega

Untitled

Oct 12th, 2023
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local text = "Администратор: Andrew_Sheredega[526] выдал warn John_Shoton[552]. Причина: aim [Rifa / 10]"
  2.  
  3. if text:find("Администратор: .+ выдал warn .+%. Причина: .+ %[.+ / %d+%]") then
  4.   local admin, player, reason, frac, rank = text:match("Администратор: (.+) выдал warn (.+)%. Причина: (.+) %[(.+) / (%d+)%]")
  5.   if admin:find("%[%d+%]") then admin = admin:match("(.+)%[%d+%]") end
  6.   if player:find("%[%d+%]") then player = player:match("(.+)%[%d+%]") end
  7.   print(admin, player, reason, frac, rank)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement