Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findplayer(playername)
- plrlen = string.len(playername)
- Current_Players = {"Memo1332","heccBeccKecc","HeccaBiggay25","Oof_Doof2"}
- for i=1,#Current_Players do
- plr = Current_Players[i]
- if plr:sub(1,plrlen):lower() == playername:lower() then
- return Current_Players[i]
- end
- end
- end
- msg = "<get/m/AOB"
- if msg:sub(2,5) == "get/" then
- for i=6,99,1 do
- if msg:sub(i,i) == "/" then
- kek = i
- break
- end
- end
- player_name = findplayer(msg:sub(6,kek-1))
- message = msg:sub(kek+1)
- print("Got "..player_name.." with message: "..message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement