i understand u use this function
function findPlayer(player)
if player and type(player) == "string" then
local plr = getPlayerFromName
if plr then return plr end
local pC = 0
local player = string.lower(player)
local spl = split(player, string.byte("["))
if spl then
player = table.contact(spl, ";")
end
for k, v in ipairs(getElementsByType("player") do
local nam = string.lower(getPlayerName(v)
local spl = split(nam, string.byte("["))
if spl then
nam = table.contact(spl, ";")
end
if string.find(name, player) then plr = v pC = pC + 1
end
end
if plr and pC == 1 then
return plr
end
return false
else return false
end
end
--- copy this function and use it like this
-- player = findPlayer(partOfPlayerName)