i've tried editing it now just for a bit and it gives me a non sense error!
function forceRedirectPlayer(who,commandName,thePlayer)
if hasObjectPermissionTo ( player, "function.banPlayer", true ) then
redirectPlayer( who, "192.168.1.64", 22003 )
else
cancelEvent() and outputChatBox("You cannot use that command.",thePlayer,255,0,0)
end
end
addCommandHandler("freconnect",forceRedirectPlayer)
please help