Eh, not much to say really. Quite a simple script since I'm brand new to C++, purely did this for self education purposes.
Will restrict players from certain areas without any security clearance and will globally broadcast if a player without a GM rank steps foot on GM Island. (Odds are they can't without hacking on your server). Easily editable and self explanatory, newArea is areaID and security is the gmlevel for RBAC commands.
Tested and works, not sure if this is the most efficient way of doing it though, always willing to take constructive criticism from those with more experience!