is this correct?
PHP Code:
public adminmenu_handler(id, key){
switch(key){
case 0: {
new players[32], inum, iPlayer
new name[MAX_PLAYERS + 1]
get_user_name(id, name, charsmax(name))
if(AntiChanger){
AntiChanger = false
server_cmd("amx_cvar anti_steamid_changer 1")
} else if (!AntiChanger){
AntiChanger = true
server_cmd("amx_cvar anti_steamid_changer 0")
}
get_players(players, inum)
for (new i=1, i<=inum; i++){
players[i] = iPlayer
if(get_user_flags(iPlayer) & ADMIN_FLAG) ColorChat(id, GREEN, "%s Admin^4 %s^1%s Anti SteamID Changer!", tag, name, AntiChanger ? "enabled" : "disabled")
}
adminmenu(id)
}
case 9:{
menuVIP(id)
}
}
}
and should i use switch to check that boolean? idk if it's a good idea to use switch in a switch