It won't, first off these are constants not strings and secondly you can't use array in the set_user_flags native.
Code:
new const FreeFlags[ ] = { ADMIN_IMMUNITY, ADMIN_RESERVATION, ADMIN_CHAT }
public somefunction( id )
{
new iFlags
for( new i; i < sizeof FreeFlags; i ++ ) iFlags = iFlags | FreeFlags[ i ]
set_user_flags( id, iFlags )
}
Probably can be done better than using a loop but I have no idea about bitwise operators
Or a better way:
Code:
new const FreeFlags = ADMIN_IMMUNITY | ADMIN_RESERVATION | ADMIN_CHAT
public somefunction( id )
{
set_user_flags( id, FreeFlags )
}