Hey I wanted to let a head admin be able to also kick other admins. Here's what I found with the ban admin code
(else_try),
(eq, ":event_type", multiplayer_event_admin_kick_player),
(try_begin),
(store_script_param, ":value", 3),
(player_is_active, ":value"),
#condition checks are done
# Vincenzo begin
(neg|player_is_admin, ":value"),
(str_store_player_username, s2, ":player_no"), # adminname
(str_store_player_username, s3, ":value"),
(str_store_string, s4, "str_kick_player_s2_s3"),
(call_script, "script_multiplayer_broadcast_message"),
# Vincenzo end
(kick_player, ":value"),
(try_end),
(else_try),
(eq, ":event_type", multiplayer_event_admin_ban_player),
(try_begin),
(store_script_param, ":value", 3),
#validity check
(player_is_active, ":value"),
(try_begin),
(player_get_unique_id, ":value_id", ":value"),
(gt,":value_id", 1), # Key auth server problem protection (id 1 if wrong)
#condition checks are done
(try_begin), # unmark the lines from here down to try end. you dont need all of the lines. feel free to only unmark as many lines as you need for admin ids. you can add more IDs.
(player_is_admin, ":value"), #lets not run the code below if player being banned is not an admin, as it would be pointless
(player_get_unique_id, ":player_id", ":player_no"),#get their ID
(this_or_next|eq, ":player_id", 1111111), # only these admins can ban other admins. # 1
(this_or_next|eq, ":player_id", 1111111), # 2
(eq, ":player_id", 1111111),#always make sure the last/only id you want to be able to ban admins is just eq, not this or next eq. # 3
(neq, ":value_id", 1111111), # you will want to put the IDs of admins here that you dont want banned when their name is clicked. hint, you can ban youself if you dont add your ID here
(neq, ":value_id", 1111111), # if an admin not approved above will not be able to ban admins. there should be no message saying someone was banned when no one was.
(neq, ":value_id", 111111),
(player_set_is_admin, ":value", 0),
(try_end),
(neg|player_is_admin, ":value"),
(str_store_player_username, s2, ":player_no"), # adminname
(str_store_player_username, s3, ":value"),
(str_store_string, s4, "str_ban_player_s2_s3"),
(call_script, "script_multiplayer_broadcast_message"),
(ban_player, ":value", 0, ":player_no"),
(else_try),
(kick_player, ":value"),
(try_end),
(try_end),
I'm not sure exactly what to add or change to let admins kick another admin. I tried adding some code but it didn't work.