if (exports.global:isPlayerAdmin(thePlayer)) then if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID]", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName = exports.global:findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then local logged = getElementData(targetPlayer, "loggedin") local username = getPlayerName(thePlayer) if (logged==0) then outputChatBox("Player is not logged in.", thePlayer, 255, 0, 0) else