pawn Code:
else if(strcmp(cmd,"/Switch",true)==0)
{
    new string[256];
    format(string, 256, "{196E0C}» %s\n{104E8B}» %s\n{EBFF00}» %s\n{D3D3D3}» Sub\n{D3D3D3}» Play",TeamInfo[TeamA][Name],TeamInfo[TeamB][Name],TeamInfo[TeamC][Name]);
    ShowPlayerDialog(playerid, DIALOG_SWITCH, DIALOG_STYLE_LIST, "» Switch:", string, "Okay", "Exit");
   return 1;
}
//OnDialogResponse
if(dialogid == DIALOG_SWITCH)
{
    new string[256];
    new  SwitchStr[MaxString];
    if(response == 0)
    {
        format(string, 128, "{196E0C}» %s\n{104E8B}» %s\n{EBFF00}» %s\n{D3D3D3}» Sub\n{D3D3D3}» Play",TeamInfo[TeamA][Name],TeamInfo[TeamB][Name],TeamInfo[TeamC][Name]);
        ShowPlayerDialog(playerid, DIALOG_SWITCH, DIALOG_STYLE_LIST, "» Switch:", string, "Okay", "Exit");
        return 1;
    }
    if(response == 1)
    {
        if(listitem == 0) // A
        {
           new  Float:Angle, Float:x, Float:y, Float:z;
           PlayerInfo[playerid][PlayerTeam]=TeamA;
           SetSpawnInfo(playerid,0,TeamInfo[TeamA][Skin],x,y,z,Angle,0,0,0,0,0,0);
           format(SwitchStr,sizeof(SwitchStr),"* \"%s\" Trocou para o time: %s.",PlayerInfo[playerid][PlayerName],TeamInfo[TeamA][Name]);
           SendClientMessageToAll(TeamInfo[TeamA][Color],SwitchStr);
        }
        if(listitem == 1) // B
        {
            new  Float:Angle, Float:x, Float:y, Float:z;
            PlayerInfo[playerid][PlayerTeam]=TeamB;
            SetSpawnInfo(playerid,0,TeamInfo[TeamB][Skin],x,y,z,Angle,0,0,0,0,0,0);
            format(SwitchStr,sizeof(SwitchStr),"* \"%s\" Trocou para o time: %s.",PlayerInfo[playerid][PlayerName],TeamInfo[TeamB][Name]);
            SendClientMessageToAll(TeamInfo[TeamB][Color],SwitchStr);
        }
        if(listitem == 2) //REF
        {
            new  Float:Angle, Float:x, Float:y, Float:z;
            PlayerInfo[playerid][PlayerTeam]=TeamC;
            SetSpawnInfo(playerid,0,TeamInfo[TeamC][Skin],x,y,z,Angle,0,0,0,0,0,0);
            format(SwitchStr,sizeof(SwitchStr),"* \"%s\" Trocou para o time: %s.",PlayerInfo[playerid][PlayerName],TeamInfo[TeamC][Name]);
            SendClientMessageToAll(TeamInfo[TeamC][Color],SwitchStr);
         }
         if(listitem == 3) //Sub
         {
             if (PlayerInRound[playerid]==true)                                     SendClientMessage(playerid,ServerColor2,"* Vocк nгo pode usar esse comando enquanto joga um Round.");
                else if (IsPlayerInAnyVehicle(playerid))                        SendClientMessage(playerid,ServerColor2,"* Vocк nгo pode usa esse comando dentro de um veiculo.");
                else if (PlayerInfo[playerid][PlayerStatus]==Sub)       SendClientMessage(playerid,ServerColor2,"* Vocк Jб estб como reserva.");
                else
                {
                        PlayerInfo[playerid][PlayerStatus]=Sub;
                        new  Float:Angle, Float:x, Float:y, Float:z;
                        new  PlayerSkin=GetPlayerSkin(playerid);
                        new interior=GetPlayerInterior(playerid);
                        GetPlayerPos(playerid, x, y, z),GetPlayerFacingAngle(playerid,Angle);
                        SetSpawnInfo(playerid,0,PlayerSkin,x,y,z,Angle,0,0,0,0,0,0);
                        SpawnPlayer(playerid);
                        SetPlayerInterior(playerid,interior);
                        new Str[256];
                        format(Str,MaxString,"* \"%s\" Foi para a reserva.",PlayerInfo[playerid][PlayerName]);
                        SendClientMessageToAll(ServerColor3,Str);
                }
          }
          if(listitem == 4) //play
          {
                if (PlayerInRound[playerid]==true)                                          SendClientMessage(playerid,ServerColor2,"* Vocк nгo pode usar esse comando enquanto joga um round.");
                else if (IsPlayerInAnyVehicle(playerid))                                SendClientMessage(playerid,ServerColor2,"* Vocк nгo pode usar esse comando dentro de um veiculo.");
                else if (PlayerInfo[playerid][PlayerStatus]==Waiting)   SendClientMessage(playerid,ServerColor2,"* Vocк Jб estб como titular.");
                else if (PlayerInfo[playerid][Duel]>0)                                  SendClientMessage(playerid,ServerColor2,"* Vocк nгo pode usar em um duelo.");
                else
                {
                        PlayerInfo[playerid][PlayerStatus]=Waiting;
                        new  Float:Angle, Float:x, Float:y, Float:z;
                        new  PlayerSkin=GetPlayerSkin(playerid);
                        new interior=GetPlayerInterior(playerid);
                        GetPlayerPos(playerid, x, y, z),GetPlayerFacingAngle(playerid,Angle);
                        SetSpawnInfo(playerid,0,PlayerSkin,x,y,z,Angle,0,0,0,0,0,0);
                        SpawnPlayer(playerid);
                        SetPlayerInterior(playerid,interior);
                        new Str[256];
                        format(Str,MaxString,"* \"%s\" Veio para o time titular.",PlayerInfo[playerid][PlayerName]);
                        SendClientMessageToAll(ServerColor3,Str);
                }
          }
     }
}