Sudan was under British rule and Cyprus was under British rule at the same time. Outcome is vastly different. The Brits brought civilisation and made Cyprus what it is, enabling its current prosperity (only difference between Cyprus and Greece is that Cyprus was a British colony and Greece wasn't). Somehow it didn't happen in Sudan.
And no it's not because they handled locals differently. They didn't care about locals. Colonialism is about exploiting territory, not population - locals, for colonialists, just "happen to be there" and are usually an obstacle or annoyance rather than a resource to exploit.
Maybe it's because locals were different.