llGetPermissions
Function Syntax
integer llGetPermissions(
Returns an integer bitmask of the permissions that have been granted to the script. Individual permissions can be determined using a bit-wise “and” operation against the PERMISSION_* constants