/* call-seq: * player.admin? -> true or false * * This method returns true if the player is an admin, else it * returns false */ static VALUE playerRecord_isAdmin(VALUE self) { bz_PlayerRecord *playerRecord; Data_Get_Struct(self, bz_PlayerRecord, playerRecord); if (playerRecord->admin) return Qtrue; return Qfalse; }