function getPlayerFromNickPart(part)
local player
part=string.lower(part)
for _,p in ipairs(getElementsByType("player")) do
local nick=string.lower(getPlayerName(p):gsub("#%x%x%x%x%x%x",""))
if string.find(nick,part) then
if not player then
player=p
else
return false
end
end
end
return player
end
returns player from nick part, ignoring colorcodes and caps.returns false if more then 1 player with that nick part.
bit better then solidsnakes, because of the ignoring colorcodes, caps, and caring of more then 1player check.