Hello
This is just a simple improvement of getPlayerByNameWildcard:
With this function "getPlayerByWildcard(partofname)" you can do the same as the normal function, but you can add the ~, but you don't need it..
As I said just a very simple improvement.
Returns false if no player is found and the player if a player is found.
This is just a simple improvement of getPlayerByNameWildcard:
Lua:
function getPlayerByWildcard(name)
local check = ""
if(getPlayerByNameWildcard(name) ~= nil or getPlayerByNameWildcard(name.."~")) then
check = getPlayerByNameWildcard(name)
if check == nil then
check = getPlayerByNameWildcard(name.."~")
end
else
return false
end
return check
end
With this function "getPlayerByWildcard(partofname)" you can do the same as the normal function, but you can add the ~, but you don't need it..
As I said just a very simple improvement.
Returns false if no player is found and the player if a player is found.