Solution by @Quassnoi will fail in case of ties. Here is the solution that will work in case of ties:
SELECT *,IF (@score=ui.points, @rank:=@rank, @rank:=@rank+1) rank,@score:=ui.points scoreFROM users ui,(SELECT @score:=0, @rank:=0) rORDER BY points DESC